diff options
author | unknown <monty@mysql.com> | 2005-02-28 12:18:39 +0200 |
---|---|---|
committer | unknown <monty@mysql.com> | 2005-02-28 12:18:39 +0200 |
commit | 45a26d449d157fb2f5c4b5ae871eb98728d9ee55 (patch) | |
tree | f466a4f954ca82d8aae5e4d3ab0a985e7fdce2f7 /strings | |
parent | 108702a34e37bae22f117a3a7e18e7cead3e63c8 (diff) | |
parent | 8e3addf9284742a6b29fb3016b8c612dfd1a5778 (diff) | |
download | mariadb-git-45a26d449d157fb2f5c4b5ae871eb98728d9ee55.tar.gz |
merge with 4.1
BitKeeper/etc/ignore:
auto-union
BitKeeper/etc/logging_ok:
auto-union
client/mysql.cc:
Auto merged
client/mysqldump.c:
Auto merged
innobase/dict/dict0dict.c:
Auto merged
innobase/fil/fil0fil.c:
Auto merged
innobase/row/row0sel.c:
Auto merged
mysql-test/r/select_found.result:
Auto merged
mysql-test/r/type_set.result:
Auto merged
mysys/default.c:
Auto merged
sql/field.h:
Auto merged
sql/item_cmpfunc.cc:
Auto merged
sql/mysqld.cc:
Auto merged
sql/sql_db.cc:
Auto merged
sql/sql_insert.cc:
Auto merged
sql/sql_lex.h:
Auto merged
sql/sql_repl.cc:
Auto merged
sql/sql_select.cc:
Auto merged
strings/ctype-simple.c:
Auto merged
include/mysql_com.h:
Merge
sql/filesort.cc:
merge
Diffstat (limited to 'strings')
-rw-r--r-- | strings/ctype-simple.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/strings/ctype-simple.c b/strings/ctype-simple.c index a955435c251..61e7cf1571b 100644 --- a/strings/ctype-simple.c +++ b/strings/ctype-simple.c @@ -545,7 +545,6 @@ longlong my_strntoll_8bit(CHARSET_INFO *cs __attribute__((unused)), register unsigned int cutlim; register ulonglong i; register const char *s, *e; - register unsigned char c; const char *save; int overflow; @@ -608,8 +607,9 @@ longlong my_strntoll_8bit(CHARSET_INFO *cs __attribute__((unused)), overflow = 0; i = 0; - for (c = *s; s != e; c = *++s) + for ( ; s != e; s++) { + register unsigned char c= *s; if (c>='0' && c<='9') c -= '0'; else if (c>='A' && c<='Z') @@ -668,7 +668,6 @@ ulonglong my_strntoull_8bit(CHARSET_INFO *cs, register unsigned int cutlim; register ulonglong i; register const char *s, *e; - register unsigned char c; const char *save; int overflow; @@ -731,8 +730,10 @@ ulonglong my_strntoull_8bit(CHARSET_INFO *cs, overflow = 0; i = 0; - for (c = *s; s != e; c = *++s) + for ( ; s != e; s++) { + register unsigned char c= *s; + if (c>='0' && c<='9') c -= '0'; else if (c>='A' && c<='Z') |