projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b720b5a
)
src/daemon/common_test.c: Fix "decimal constant is unsigned only in ISO C90" warning.
author
Florian Forster
<octo@collectd.org>
Mon, 29 Jun 2015 07:51:12 +0000
(09:51 +0200)
committer
Florian Forster
<octo@collectd.org>
Mon, 29 Jun 2015 07:51:12 +0000
(09:51 +0200)
src/daemon/common_test.c
patch
|
blob
|
history
diff --git
a/src/daemon/common_test.c
b/src/daemon/common_test.c
index
b1701bc
..
d34e411
100644
(file)
--- 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;