summaryrefslogtreecommitdiff
path: root/ext/date
diff options
context:
space:
mode:
authorNuno Lopes <nlopess@php.net>2006-11-10 17:32:15 +0000
committerNuno Lopes <nlopess@php.net>2006-11-10 17:32:15 +0000
commitfe8e53f7a78ee763dc93a5301f894d0f562ce312 (patch)
tree105b752ecc1b000d106567e5de15903b27d838ff /ext/date
parent3011278aab84d35e23aab35b20819e49fbfff17f (diff)
downloadphp-git-fe8e53f7a78ee763dc93a5301f894d0f562ce312.tar.gz
mark the binary search delimiters as unsigned, so that the compiler can use a quick shift operation
Diffstat (limited to 'ext/date')
-rw-r--r--ext/date/lib/parse_tz.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/date/lib/parse_tz.c b/ext/date/lib/parse_tz.c
index bf7cd80861..723017eef0 100644
--- a/ext/date/lib/parse_tz.c
+++ b/ext/date/lib/parse_tz.c
@@ -192,7 +192,7 @@ void timelib_dump_tzinfo(timelib_tzinfo *tz)
}
}
-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;