diff options
-rw-r--r-- | src/include/c.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/include/c.h b/src/include/c.h index 72a3fd10b41..8cdc16a0f4a 100644 --- a/src/include/c.h +++ b/src/include/c.h @@ -1278,9 +1278,9 @@ extern int fdatasync(int fildes); * 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 |