Update comment on allowed range of bases

This commit is contained in:
Juhani Krekelä 2022-11-21 00:37:52 +02:00
parent ebec133018
commit 17a13cc101
1 changed files with 1 additions and 2 deletions

View File

@ -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;