com php-src: fix pack64.phpt related fail on win64: ext/standard/pack.c
| From: | Anatol Belski | Date: | Thu, 23 Oct 2014 13:47:47 +0000 |
| Subject: | com php-src: fix pack64.phpt related fail on win64: ext/standard/pack.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-82492@lists.php.net to get a copy of this message | ||
Commit: df6aff48a6a052e47fa46c2129d7aa71857848e7
Author: Anatol Belski <ab@php.net> Thu, 23 Oct 2014 14:36:55 +0200
Parents: f375b530bbb852357f617936e42fb9327fb3cc13
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=df6aff48a6a052e47fa46c2129d7aa71857848e7
Log:
fix pack64.phpt related fail on win64
Changed paths:
M ext/standard/pack.c
Diff:
diff --git a/ext/standard/pack.c b/ext/standard/pack.c
index 07206c8..4af72c3 100644
--- a/ext/standard/pack.c
+++ b/ext/standard/pack.c
@@ -912,7 +912,7 @@ PHP_FUNCTION(unpack)
case 'P': {
int issigned = 0;
int *map = machine_endian_longlong_map;
- long v = 0;
+ zend_long v = 0;
if (type == 'q' || type == 'Q') {
issigned = input[inputpos + (machine_little_endian ? 7 : 0)] & 0x80;
@@ -927,9 +927,9 @@ PHP_FUNCTION(unpack)
v = php_unpack(&input[inputpos], 8, issigned, map);
if (type == 'q') {
- v = (signed long int) v;
+ v = (zend_long) v;
} else {
- v = (unsigned long int) v;
+ v = (zend_ulong) v;
}
add_assoc_long(return_value, n, v);