]> git.ipfire.org Git - thirdparty/linux.git/blobdiff - lib/test_scanf.c
btrfs: use u64 for buffer sizes in the tree search ioctls
[thirdparty/linux.git] / lib / test_scanf.c
index b620cf7de503542a98f38c45c76e9043b242746e..a2707af2951ab07ca7cd44aeceed15aff4b79cd1 100644 (file)
@@ -606,7 +606,7 @@ static void __init numbers_slice(void)
 #define test_number_prefix(T, str, scan_fmt, expect0, expect1, n_args, fn)     \
 do {                                                                           \
        const T expect[2] = { expect0, expect1 };                               \
-       T result[2] = {~expect[0], ~expect[1]};                                 \
+       T result[2] = { (T)~expect[0], (T)~expect[1] };                         \
                                                                                \
        _test(fn, &expect, str, scan_fmt, n_args, &result[0], &result[1]);      \
 } while (0)