cvs: ZendEngine2 / zend_strtol.c

From: Date: Fri, 06 Oct 2006 17:23:05 +0000
Subject: cvs: ZendEngine2 / zend_strtol.c
Groups: php.zend-engine.cvs 
Request: Send a blank email to php-zend-engine-cvs+get-5317@lists.php.net to get a copy of this message
andrei Fri Oct 6 17:23:05 2006 UTC Modified files: /ZendEngine2 zend_strtol.c Log: Patch from Matt W to fix the case of hitting ERANGE too early. http://cvs.php.net/viewvc.cgi/ZendEngine2/zend_strtol.c?r1=1.2&r2=1.3&diff_format=u Index: ZendEngine2/zend_strtol.c diff -u ZendEngine2/zend_strtol.c:1.2 ZendEngine2/zend_strtol.c:1.3 --- ZendEngine2/zend_strtol.c:1.2 Tue Feb 21 20:12:41 2006 +++ ZendEngine2/zend_strtol.c Fri Oct 6 17:23:05 2006 @@ -103,7 +103,7 @@ for (acc = 0, any = 0;; c = *s++) { if ((val = u_digit(c, base)) < 0) break; - if (any < 0 || acc > cutoff || (acc == cutoff && c > cutlim)) + if (any < 0 || acc > cutoff || (acc == cutoff && val > cutlim)) any = -1; else { any = 1;

« previous php.zend-engine.cvs (#5317) next »