diff options
| author | Haihua Hu <jared.hu@nxp.com> | 2025-01-06 21:55:37 +0900 |
|---|---|---|
| committer | Haihua Hu <jared.hu@nxp.com> | 2025-01-09 09:58:32 +0900 |
| commit | f246e619d17deb92f414315d1747a9b7aca659b9 (patch) | |
| tree | a86c55604e209fb1404d860aa31a3069e72c34d8 /tests/cpp-compile-test.cpp | |
| parent | connection: Fix wrong format string (diff) | |
| download | wayland-f246e619d17deb92f414315d1747a9b7aca659b9.tar wayland-f246e619d17deb92f414315d1747a9b7aca659b9.tar.gz wayland-f246e619d17deb92f414315d1747a9b7aca659b9.tar.bz2 wayland-f246e619d17deb92f414315d1747a9b7aca659b9.tar.lz wayland-f246e619d17deb92f414315d1747a9b7aca659b9.tar.xz wayland-f246e619d17deb92f414315d1747a9b7aca659b9.tar.zst wayland-f246e619d17deb92f414315d1747a9b7aca659b9.zip | |
util: reduce error of wl_fixed_from_double()
when cast double to fixed pointer, there will be big
error, eg 1919.9998 to 1919. Call round before cast
to get nearest value 1920 of 1919.9998
Signed-off-by: Haihua Hu <jared.hu@nxp.com>
Diffstat (limited to 'tests/cpp-compile-test.cpp')
0 files changed, 0 insertions, 0 deletions
