• Bastien Nocera's avatar
    vfs101: Fix warning about value truncation · e5f4021a
    Bastien Nocera authored
    libfprint/drivers/vfs101.c:854:6: warning: absolute value function 'abs' given an argument of type 'long' but has parameter of type 'int' which may cause truncation of value [-Wabsolute-value]
            if (abs(count - VFS_IMG_BEST_CONTRAST) < abs(vdev->best_clevel - VFS_IMG_BEST_CONTRAST))
                ^
    libfprint/drivers/vfs101.c:854:6: note: use function 'labs' instead
            if (abs(count - VFS_IMG_BEST_CONTRAST) < abs(vdev->best_clevel - VFS_IMG_BEST_CONTRAST))
                ^~~
                labs
    e5f4021a
Name
Last commit
Last update
doc Loading commit data...
examples Loading commit data...
libfprint Loading commit data...
.gitignore Loading commit data...
.gitlab-ci.yml Loading commit data...
AUTHORS Loading commit data...
COPYING Loading commit data...
HACKING.md Loading commit data...
INSTALL Loading commit data...
NEWS Loading commit data...
README Loading commit data...
THANKS Loading commit data...
TODO Loading commit data...
meson.build Loading commit data...
meson_options.txt Loading commit data...