diff options
-rw-r--r-- | tests/endianness-test.c | 3 | ||||
-rw-r--r-- | tests/test-bitops.c | 4 | ||||
-rw-r--r-- | tests/test-opts-visitor.c | 2 |
3 files changed, 5 insertions, 4 deletions
diff --git a/tests/endianness-test.c b/tests/endianness-test.c index feb32a8503..8719c0999c 100644 --- a/tests/endianness-test.c +++ b/tests/endianness-test.c @@ -44,7 +44,8 @@ static const TestCase test_cases[] = { { "ppc", "prep", 0x80000000, .bswap = true }, { "ppc", "bamboo", 0xe8000000, .bswap = true, .superio = "i82378" }, { "ppc64", "mac99", 0xf2000000, .bswap = true, .superio = "i82378" }, - { "ppc64", "pseries", 0x10080000000, .bswap = true, .superio = "i82378" }, + { "ppc64", "pseries", 0x10080000000ULL, + .bswap = true, .superio = "i82378" }, { "sh4", "r2d", 0xfe240000, .superio = "i82378" }, { "sh4eb", "r2d", 0xfe240000, .bswap = true, .superio = "i82378" }, { "sparc64", "sun4u", 0x1fe02000000LL, .bswap = true }, diff --git a/tests/test-bitops.c b/tests/test-bitops.c index 4e713e4e00..8238eb5f6b 100644 --- a/tests/test-bitops.c +++ b/tests/test-bitops.c @@ -31,8 +31,8 @@ static const S32Test test_s32_data[] = { }; static const S64Test test_s64_data[] = { - { 0x8459826734967223, 60, 4, -8 }, - { 0x8459826734967223, 0, 64, 0x8459826734967223 }, + { 0x8459826734967223ULL, 60, 4, -8 }, + { 0x8459826734967223ULL, 0, 64, 0x8459826734967223LL }, }; static void test_sextract32(void) diff --git a/tests/test-opts-visitor.c b/tests/test-opts-visitor.c index 9f902b597e..ebeee5d589 100644 --- a/tests/test-opts-visitor.c +++ b/tests/test-opts-visitor.c @@ -125,7 +125,7 @@ test_value(OptsVisitorFixture *f, gconstpointer test_data) g_assert((magic & bitval) == 0); magic |= bitval; } - g_assert(magic == 0xBADC0FFEE0DDF00D); + g_assert(magic == 0xBADC0FFEE0DDF00DULL); magic = 0; for (u16 = f->userdef->u16; u16 != NULL; u16 = u16->next) { |