summaryrefslogtreecommitdiff
path: root/ext/standard/strnatcmp.c
diff options
context:
space:
mode:
authorJani Taskinen <jani@php.net>2009-07-17 11:13:51 +0000
committerJani Taskinen <jani@php.net>2009-07-17 11:13:51 +0000
commit785f1bd1703a72ec3e327423fe4ccd9a96f80f87 (patch)
treef335cb1064b3bdb1973ba25fcd90fe40990922ab /ext/standard/strnatcmp.c
parent4e0b75042aefb312a2a7e6d4187e0279c83825fa (diff)
downloadphp-git-785f1bd1703a72ec3e327423fe4ccd9a96f80f87.tar.gz
- Fixed bug #47481 (natcasesort() does not sort extended ASCII characters correctly)
Diffstat (limited to 'ext/standard/strnatcmp.c')
-rw-r--r--ext/standard/strnatcmp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/standard/strnatcmp.c b/ext/standard/strnatcmp.c
index 2459e46e66..366c12449f 100644
--- a/ext/standard/strnatcmp.c
+++ b/ext/standard/strnatcmp.c
@@ -101,7 +101,7 @@ compare_left(char const **a, char const *aend, char const **b, char const *bend)
*/
PHPAPI int strnatcmp_ex(char const *a, size_t a_len, char const *b, size_t b_len, int fold_case)
{
- char ca, cb;
+ unsigned char ca, cb;
char const *ap, *bp;
char const *aend = a + a_len,
*bend = b + b_len;