From 130316f078cadab03f6bbbbd6a8cd5cee77dc558 Mon Sep 17 00:00:00 2001 From: Florian Forster Date: Mon, 29 Jun 2015 09:51:12 +0200 Subject: [PATCH] src/daemon/common_test.c: Fix "decimal constant is unsigned only in ISO C90" warning. --- src/daemon/common_test.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; -- 2.30.2