fixed maximum radix value from 32 to 36

This commit is contained in:
ika4422 2026-04-13 11:38:47 +01:00
parent ca1e27a84e
commit 6c644d1256
No known key found for this signature in database
GPG key ID: F7FBF981D2A33785

View file

@ -100,7 +100,7 @@ impl std::str::FromStr for Base {
.map_err(|_| format!("'{}' is not a valid base", s))?,
};
if (2..=32).contains(&radix) {
if (2..=36).contains(&radix) {
Ok(Base(radix))
} else {
Err(format!("base must be between 2 and 36, got {}", radix))