com php-src: rely on macros from stdint for int constants on 64 bit: Zend/zend_long.h
| From: | Anatol Belski | Date: | Mon, 02 Feb 2015 08:39:33 +0000 |
| Subject: | com php-src: rely on macros from stdint for int constants on 64 bit: Zend/zend_long.h | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-84564@lists.php.net to get a copy of this message | ||
Commit: 79c9dc75de490430a81ecb9134c2c79b3d8fc0a1
Author: Anatol Belski <ab@php.net> Mon, 2 Feb 2015 09:17:52 +0100
Parents: f248df900300c5b2201d4cf634d58d413399e2eb
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=79c9dc75de490430a81ecb9134c2c79b3d8fc0a1
Log:
rely on macros from stdint for int constants on 64 bit
32 bit ones are already in use
Changed paths:
M Zend/zend_long.h
Diff:
diff --git a/Zend/zend_long.h b/Zend/zend_long.h
index 2644faa..1acd2cf 100644
--- a/Zend/zend_long.h
+++ b/Zend/zend_long.h
@@ -37,13 +37,8 @@ typedef int64_t zend_off_t;
# define ZEND_LONG_MAX INT64_MAX
# define ZEND_LONG_MIN INT64_MIN
# define ZEND_ULONG_MAX UINT64_MAX
-# ifdef _WIN64
-# define Z_L(i) i##i64
-# define Z_UL(i) i##Ui64
-# else
-# define Z_L(i) i##LL
-# define Z_UL(i) i##ULL
-# endif
+# define Z_L(i) INT64_C(i)
+# define Z_UL(i) UINT64_C(i)
# define SIZEOF_ZEND_LONG 8
#else
typedef int32_t zend_long;