From: Florian Forster Date: Mon, 29 Jun 2015 07:51:12 +0000 (+0200) Subject: src/daemon/common_test.c: Fix "decimal constant is unsigned only in ISO C90" warning. X-Git-Tag: collectd-5.6.0~663 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=130316f078cadab03f6bbbbd6a8cd5cee77dc558;p=collectd.git src/daemon/common_test.c: Fix "decimal constant is unsigned only in ISO C90" warning. --- diff --git a/src/daemon/common_test.c b/src/daemon/common_test.c index b1701bcf..d34e4112 100644 --- a/src/daemon/common_test.c +++ b/src/daemon/common_test.c @@ -354,7 +354,8 @@ DEF_TEST(value_to_rate) { 0, 10, DS_TYPE_COUNTER, {.counter = 0}, {.counter = 1000}, NAN}, {10, 20, DS_TYPE_COUNTER, {.counter = 1000}, {.counter = 5000}, 400.0}, /* 32bit wrap-around. */ - {20, 30, DS_TYPE_COUNTER, {.counter = 4294967238}, {.counter = 42}, 10.0}, + {20, 30, DS_TYPE_COUNTER, {.counter = 4294967238ULL}, {.counter = 42}, 10.0}, + /* 64bit wrap-around. */ {30, 40, DS_TYPE_COUNTER, {.counter = 18446744073709551558ULL}, {.counter = 42}, 10.0}, }; size_t i;