com php-src: one more fix to pack/unpack: ext/standard/pack.c

From: Date: Sun, 10 Nov 2013 13:40:00 +0000
Subject: com php-src: one more fix to pack/unpack: ext/standard/pack.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-73921@lists.php.net to get a copy of this message
Commit: c0b112c68d79b6ee5ccf172c8bd3c0d94a004071 Author: Anatol Belski <ab@php.net> Sun, 10 Nov 2013 14:40:00 +0100 Parents: 7cf68266b33770d893484bc589257918e43661f1 Branches: str_size_and_int64 Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=c0b112c68d79b6ee5ccf172c8bd3c0d94a004071 Log: one more fix to pack/unpack Changed paths: M ext/standard/pack.c Diff: diff --git a/ext/standard/pack.c b/ext/standard/pack.c index a3b4b46..70bbe20 100644 --- a/ext/standard/pack.c +++ b/ext/standard/pack.c @@ -787,7 +787,7 @@ PHP_FUNCTION(unpack) case 'c': case 'C': { int issigned = (type == 'c') ? (input[inputpos] & 0x80) : 0; - long v = php_unpack(&input[inputpos], 1, issigned, byte_map); + php_int_t v = php_unpack(&input[inputpos], 1, issigned, byte_map); add_assoc_long(return_value, n, v); break; } @@ -796,7 +796,7 @@ PHP_FUNCTION(unpack) case 'S': case 'n': case 'v': { - long v; + php_int_t v; int issigned = 0; int *map = machine_endian_short_map; @@ -815,7 +815,7 @@ PHP_FUNCTION(unpack) case 'i': case 'I': { - long v; + php_int_t v; int issigned = 0; if (type == 'i') {

« previous php.cvs (#73921) next »