rfc:range_checks_for_64_bit
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
rfc:range_checks_for_64_bit [2015/08/24 15:51] – ab | rfc:range_checks_for_64_bit [2015/08/24 15:53] – ab | ||
---|---|---|---|
Line 36: | Line 36: | ||
#if SIZEOF_INT == SIZEOF_ZEND_LONG | #if SIZEOF_INT == SIZEOF_ZEND_LONG | ||
- | # define | + | # define |
#else | #else | ||
# define ZEND_LONG_UINT_OVFL(zlong) ((zlong) < 0 || (zlong) > (zend_long)UINT_MAX) | # define ZEND_LONG_UINT_OVFL(zlong) ((zlong) < 0 || (zlong) > (zend_long)UINT_MAX) | ||
Line 42: | Line 42: | ||
#define ZEND_SIZE_T_INT_OVFL(size) ((size) > (size_t)INT_MAX) | #define ZEND_SIZE_T_INT_OVFL(size) ((size) > (size_t)INT_MAX) | ||
+ | #define ZEND_SIZE_T_UINT_OVFL(size) ((size) > (size_t)UINT_MAX) | ||
</ | </ |
rfc/range_checks_for_64_bit.txt · Last modified: 2017/09/22 13:28 by 127.0.0.1