• 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
vfs101.c 35.5 KB