diff options
Diffstat (limited to 'base/third_party/dmg_fp/dtoa.cc')
-rw-r--r-- | base/third_party/dmg_fp/dtoa.cc | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/base/third_party/dmg_fp/dtoa.cc b/base/third_party/dmg_fp/dtoa.cc index 83c3595..c1bc476 100644 --- a/base/third_party/dmg_fp/dtoa.cc +++ b/base/third_party/dmg_fp/dtoa.cc @@ -183,8 +183,12 @@ #define NO_HEX_FP #ifndef Long +#if __LP64__ +#define Long int +#else #define Long long #endif +#endif #ifndef ULong typedef unsigned Long ULong; #endif @@ -221,7 +225,7 @@ extern void *MALLOC(size_t); #ifndef PRIVATE_MEM #define PRIVATE_MEM 2304 #endif -#define PRIVATE_mem ((PRIVATE_MEM+sizeof(double)-1)/sizeof(double)) +#define PRIVATE_mem ((unsigned)((PRIVATE_MEM+sizeof(double)-1)/sizeof(double))) static double private_mem[PRIVATE_mem], *pmem_next = private_mem; #endif |