diff options
Diffstat (limited to 'ext/standard/pack.c')
| -rw-r--r-- | ext/standard/pack.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/standard/pack.c b/ext/standard/pack.c index 59f878e217..556a96d374 100644 --- a/ext/standard/pack.c +++ b/ext/standard/pack.c @@ -829,12 +829,12 @@ PHP_FUNCTION(unpack) map = little_endian_long_map; } - if (SIZEOF_ZEND_INT > 4 && issigned) { + if (SIZEOF_ZEND_LONG > 4 && issigned) { v = ~INT_MAX; } v |= php_unpack(&input[inputpos], 4, issigned, map); - if (SIZEOF_ZEND_INT > 4) { + if (SIZEOF_ZEND_LONG > 4) { if (type == 'l') { v = (signed int) v; } else { |
