summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShawn J. Goff <shawnjgoff@gmail.com>2012-09-25 17:34:56 +0200
committerAleksander Morgado <aleksander@lanedo.com>2012-09-25 17:34:56 +0200
commitb4f01b63ddfb0130e5d34d7cb4222b7aa31b46cc (patch)
treeeea63b9ecd7f4946b342f78d352a6702f372ffa7
parentec138d4f8d74c3c3bc5b3989d927d63f48c4386c (diff)
libqmi-glib,tests: add suffixes to end of literals
The compiler doesn't know the type of literals and may try to fit it into a slot that is too small. This adds suffixes to the long long and unsigned long long literals.
-rw-r--r--libqmi-glib/test/test-utils.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libqmi-glib/test/test-utils.c b/libqmi-glib/test/test-utils.c
index 90d6759..d64ae04 100644
--- a/libqmi-glib/test/test-utils.c
+++ b/libqmi-glib/test/test-utils.c
@@ -230,7 +230,7 @@ test_utils_uint64 (void)
0x0F, 0x50, 0xEB, 0xE2, 0xB6, 0x00, 0x00, 0x00
};
static guint64 values[1] = {
- 0x000000B6E2EB500F
+ 0x000000B6E2EB500FULL
};
guint8 out_buffer[8] = { 0 };
@@ -267,7 +267,7 @@ test_utils_int64 (void)
0x0F, 0x50, 0xEB, 0xE2, 0xB6, 0x00, 0x00, 0x00
};
static gint64 values[1] = {
- 0x000000B6E2EB500F
+ 0x000000B6E2EB500FLL
};
guint8 out_buffer[8] = { 0 };
@@ -303,7 +303,7 @@ common_test_utils_uint_sized (guint n_bytes)
static guint8 in_buffer[8] = {
0x0F, 0x50, 0xEB, 0xE2, 0xB6, 0x00, 0x00, 0x00
};
- guint64 value = 0x000000B6E2EB500F;
+ guint64 value = 0x000000B6E2EB500FULL;
guint8 expected_out_buffer[8] = { 0 };
guint8 out_buffer[8] = { 0 };