cvs: ZendEngine2 / zend_operators.c

From: Date: Sat, 13 Dec 2003 19:28:31 +0000
Subject: cvs: ZendEngine2 / zend_operators.c
Groups: php.zend-engine.cvs 
Request: Send a blank email to php-zend-engine-cvs+get-2109@lists.php.net to get a copy of this message
moriyoshi Sat Dec 13 14:28:31 2003 EDT Modified files: /ZendEngine2 zend_operators.c Log: Fixes for POSIX compliancy. Index: ZendEngine2/zend_operators.c diff -u ZendEngine2/zend_operators.c:1.171 ZendEngine2/zend_operators.c:1.172 --- ZendEngine2/zend_operators.c:1.171 Tue Dec 9 18:59:31 2003 +++ ZendEngine2/zend_operators.c Sat Dec 13 14:28:30 2003 @@ -17,7 +17,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: zend_operators.c,v 1.171 2003/12/09 23:59:31 sniper Exp $ */ +/* $Id: zend_operators.c,v 1.172 2003/12/13 19:28:30 moriyoshi Exp $ */ #include <ctype.h> @@ -1691,8 +1691,8 @@ len = MIN(len1, len2); while (len--) { - c1 = tolower(*s1++); - c2 = tolower(*s2++); + c1 = tolower((int)*(unsigned char *)s1++); + c2 = tolower((int)*(unsigned char *)s2++); if (c1 != c2) { return c1 - c2; } @@ -1710,8 +1710,8 @@ len = MIN(length, MIN(len1, len2)); while (len--) { - c1 = tolower(*s1++); - c2 = tolower(*s2++); + c1 = tolower((int)*(unsigned char *)s1++); + c2 = tolower((int)*(unsigned char *)s2++); if (c1 != c2) { return c1 - c2; }

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