From 17a13cc1011d57403939a4cccfef1023fc758caf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juhani=20Krekel=C3=A4?= Date: Mon, 21 Nov 2022 00:37:52 +0200 Subject: [PATCH] Update comment on allowed range of bases --- baseconv.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/baseconv.c b/baseconv.c index 62cd02e..4d66799 100644 --- a/baseconv.c +++ b/baseconv.c @@ -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;