mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-07-11 22:03:01 -06:00
Core: Fixed issue with UTF8 string comparison
git-svn-id: svn://ultimatepp.org/upp/trunk@13475 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
fe6bb55baf
commit
07d5570a46
1 changed files with 1 additions and 1 deletions
|
|
@ -273,7 +273,7 @@ int fast_memcmp(const char *a, const char *b, size_t len)
|
|||
b += 2;
|
||||
}
|
||||
if((len & 1) != 0 && *a != *b)
|
||||
return *a < *b ? -1 : 1;
|
||||
return (byte)*a < (byte)*b ? -1 : 1;
|
||||
return 0;
|
||||
}
|
||||
#else
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue