mirror of
https://github.com/MariaDB/server.git
synced 2026-05-15 19:37:16 +02: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:
parent
57ab67de6b
commit
e6c2ca3131
3 changed files with 42 additions and 10 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue