index 72a3fd10b416dcebfdacd071075a7b8317621f92..8cdc16a0f4a9b4d2a8638981a9e574405846cd3a 100644 (file)
* Similarly, wrappers around labs()/llabs() matching our int64.
*/
#if SIZEOF_LONG == 8
-#define i64abs(i) labs(i)
+#define i64abs(i) ((int64) labs(i))
#elif SIZEOF_LONG_LONG == 8
-#define i64abs(i) llabs(i)
+#define i64abs(i) ((int64) llabs(i))
#else
#error "cannot find integer type of the same size as int64_t"
#endif