diff options
author | unknown <bar@mysql.com> | 2005-03-29 16:19:31 +0500 |
---|---|---|
committer | unknown <bar@mysql.com> | 2005-03-29 16:19:31 +0500 |
commit | db5bb0c46c4892c75e4ec5b7db9260c70664fd72 (patch) | |
tree | 638cc814d42b81db0b7a156c6a0e1249563e38ca /strings | |
parent | 7bd6ddc046ddecdcfecd9b864ff3736db45ba7f2 (diff) | |
download | mariadb-git-db5bb0c46c4892c75e4ec5b7db9260c70664fd72.tar.gz |
ctype-big5.c:
More readable and safer way.
strings/ctype-big5.c:
More readable and safer way.
Diffstat (limited to 'strings')
-rw-r--r-- | strings/ctype-big5.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/strings/ctype-big5.c b/strings/ctype-big5.c index 58847a96591..e083d1371ec 100644 --- a/strings/ctype-big5.c +++ b/strings/ctype-big5.c @@ -6284,11 +6284,7 @@ uint my_well_formed_len_big5(CHARSET_INFO *cs __attribute__((unused)), const char *emb= e - 1; /* Last possible end of an MB character */ while (pos && b < e) { - /* - Cast to int8 for extra safety. "char" can be unsigned - by default on some platforms. - */ - if (((int8)b[0]) >= 0) + if ((uchar) b[0] < 128) { /* Single byte ascii character */ b++; |