]> granicus.if.org Git - php/commitdiff
Fix 5.3 as well
authorRasmus Lerdorf <rasmus@php.net>
Fri, 6 Aug 2010 18:20:41 +0000 (18:20 +0000)
committerRasmus Lerdorf <rasmus@php.net>
Fri, 6 Aug 2010 18:20:41 +0000 (18:20 +0000)
ext/standard/var_unserializer.re

index 43c230f527ec2fce0ebb07dc5c60a6a4a9bda39a..fd6f2004c71d6ae90df47809c635eb108e80ff03 100644 (file)
@@ -216,7 +216,7 @@ static inline long parse_iv2(const unsigned char *p, const unsigned char **q)
        while (1) {
                cursor = (char)*p;
                if (cursor >= '0' && cursor <= '9') {
-                       result = result * 10 + cursor - '0';
+                       result = result * 10 + (size_t)(cursor - (unsigned char)'0');
                } else {
                        break;
                }