Code

src/daemon/utils_time_mock.c: Mark static return value as "ULL".
authorFlorian Forster <octo@collectd.org>
Tue, 14 Jul 2015 07:15:51 +0000 (09:15 +0200)
committerFlorian Forster <octo@collectd.org>
Tue, 14 Jul 2015 07:15:55 +0000 (09:15 +0200)
Build on i386 squeeze fails with:
utils_time_mock.c:31: error: integer constant is too large for 'long' type

src/daemon/utils_time_mock.c

index 2bde4d3d8b39623804dc2f548c6892e0fd1e213a..217515ebd752e99c1b5a7cedac4c347ca7614394 100644 (file)
@@ -28,6 +28,6 @@
 
 cdtime_t cdtime (void)
 {
-  return (1542455354518929408);
+  return ((cdtime_t) 1542455354518929408ULL);
 }