1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00

Use always base "10" to remove base guesser in strntoul() implementation

strings/ctype-simple.c:
  Hide unused code
strings/ctype-utf8.c:
  Hide unused code
This commit is contained in:
unknown
2003-01-17 13:17:22 +04:00
parent 57ab67de6b
commit e6c2ca3131
3 changed files with 42 additions and 10 deletions

View File

@ -2486,9 +2486,11 @@ long my_strntol_ucs2(CHARSET_INFO *cs,
} while (1);
bs:
#if 0
if (base <= 0 || base == 1 || base > 36)
base = 10;
#endif
overflow = 0;
res = 0;
@ -2597,10 +2599,12 @@ ulong my_strntoul_ucs2(CHARSET_INFO *cs,
} while (1);
bs:
#if 0
if (base <= 0 || base == 1 || base > 36)
base = 10;
#endif
overflow = 0;
res = 0;
save = s;
@ -2702,10 +2706,12 @@ longlong my_strntoll_ucs2(CHARSET_INFO *cs,
} while (1);
bs:
#if 0
if (base <= 0 || base == 1 || base > 36)
base = 10;
#endif
overflow = 0;
res = 0;
save = s;
@ -2816,9 +2822,11 @@ ulonglong my_strntoull_ucs2(CHARSET_INFO *cs,
bs:
#if 0
if (base <= 0 || base == 1 || base > 36)
base = 10;
#endif
overflow = 0;
res = 0;
save = s;