summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVladislav Vaintroub <wlad@mariadb.com>2020-09-24 13:08:43 +0200
committerVladislav Vaintroub <wlad@mariadb.com>2020-09-24 13:08:43 +0200
commit6736fe92d75703f654403cb2a2f8f5ebb12c8f71 (patch)
tree48c8cd23b32425ae76e31f0dbddea38fcecbaefc
parent882ce206dbf06b771ffe4cbce2e3e4214982f302 (diff)
downloadmariadb-git-6736fe92d75703f654403cb2a2f8f5ebb12c8f71.tar.gz
Fix GCC warning: this decimal constant is unsigned only in ISO C90
-rw-r--r--unittest/mysys/crc32-t.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/unittest/mysys/crc32-t.c b/unittest/mysys/crc32-t.c
index c43be2cd586..9834d21769b 100644
--- a/unittest/mysys/crc32-t.c
+++ b/unittest/mysys/crc32-t.c
@@ -60,8 +60,8 @@ int main(int argc __attribute__((unused)),char *argv[])
DO_TEST_CRC32C(1,"", 1);
DO_TEST_CRC32C(0, "12345", 416359221);
DO_TEST_CRC32C(1, "12345", 549473433);
- DO_TEST_CRC32C(0, "1234567890123456789", 2366987449);
- DO_TEST_CRC32C(0, LONG_STR, 3009234172);
+ DO_TEST_CRC32C(0, "1234567890123456789", 2366987449U);
+ DO_TEST_CRC32C(0, LONG_STR, 3009234172U);
ok(0 == my_crc32c(0, NULL, 0), "crc32c data = NULL, length = 0");
my_end(0);