Search
j0ke.net Open Build Service
>
Projects
>
internetx
:
php5
>
php-5.2.17
> php-5.2.14-determine-sign.patch
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File php-5.2.14-determine-sign.patch of Package php-5.2.17 (Revision 19)
Currently displaying revision
19
,
show latest
Index: php-5.2.14/ext/standard/pack.c =================================================================== --- php-5.2.14.orig/ext/standard/pack.c +++ php-5.2.14/ext/standard/pack.c @@ -767,7 +767,7 @@ PHP_FUNCTION(unpack) if (type == 'i') { issigned = input[inputpos + (machine_little_endian ? (sizeof(int) - 1) : 0)] & 0x80; - } else if (sizeof(long) > 4 && (input[inputpos + machine_endian_long_map[3]] & 0x80) == 0x80) { + } else if (sizeof(long) > 4 && (input[inputpos + (machine_little_endian ? (sizeof(int) - 1) : 0)] & 0x80) == 0x80) { v = ~INT_MAX; }