cvs: php-src(PHP_5_2) /ext/date/lib parse_tz.c
| From: | Nuno Lopes | Date: | Fri, 10 Nov 2006 17:32:15 +0000 |
| Subject: | cvs: php-src(PHP_5_2) /ext/date/lib parse_tz.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-41461@lists.php.net to get a copy of this message | ||
nlopess Fri Nov 10 17:32:15 2006 UTC
Modified files: (Branch: PHP_5_2)
/php-src/ext/date/lib parse_tz.c
Log:
mark the binary search delimiters as unsigned, so that the compiler can use a quick shift
operation
http://cvs.php.net/viewvc.cgi/php-src/ext/date/lib/parse_tz.c?r1=1.20.2.6.2.6&r2=1.20.2.6.2.7&diff_format=u
Index: php-src/ext/date/lib/parse_tz.c
diff -u php-src/ext/date/lib/parse_tz.c:1.20.2.6.2.6 php-src/ext/date/lib/parse_tz.c:1.20.2.6.2.7
--- php-src/ext/date/lib/parse_tz.c:1.20.2.6.2.6 Fri Sep 1 23:25:29 2006
+++ php-src/ext/date/lib/parse_tz.c Fri Nov 10 17:32:15 2006
@@ -16,7 +16,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: parse_tz.c,v 1.20.2.6.2.6 2006/09/01 23:25:29 nlopess Exp $ */
+/* $Id: parse_tz.c,v 1.20.2.6.2.7 2006/11/10 17:32:15 nlopess Exp $ */
#include "timelib.h"
@@ -192,7 +192,7 @@
}
}
-static int tz_search(char *timezone, int left, int right, const timelib_tzdb *tzdb)
+static int tz_search(char *timezone, unsigned int left, unsigned int right, const timelib_tzdb
*tzdb)
{
int mid, cmp;