Update comment on allowed range of bases
This commit is contained in:
parent
ebec133018
commit
17a13cc101
|
@ -10,8 +10,7 @@ static bool baseconv_internal(
|
|||
const char *digits, unsigned base,
|
||||
uintmax_t num
|
||||
) {
|
||||
// Supported bases are 2 to 36 inclusive (though it could be higher
|
||||
// if our digits string was longer
|
||||
// Supported bases are 2 to number of digits inclusive
|
||||
if (base < 2 || base > strlen(digits))
|
||||
return false;
|
||||
|
||||
|
|
Loading…
Reference in New Issue