rasmus                                   Fri, 06 Aug 2010 18:20:41 +0000

Revision: http://svn.php.net/viewvc?view=revision&revision=301935

Log:
Fix 5.3 as well

Changed paths:
    U   php/php-src/branches/PHP_5_3/ext/standard/var_unserializer.re

Modified: php/php-src/branches/PHP_5_3/ext/standard/var_unserializer.re
===================================================================
--- php/php-src/branches/PHP_5_3/ext/standard/var_unserializer.re       
2010-08-06 18:19:23 UTC (rev 301934)
+++ php/php-src/branches/PHP_5_3/ext/standard/var_unserializer.re       
2010-08-06 18:20:41 UTC (rev 301935)
@@ -216,7 +216,7 @@
        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;
                }

-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to