mirror of
https://github.com/vlang/v.git
synced 2025-09-08 14:51:53 -04:00
math.big: make ./v -prod -cstrict -cc gcc-11 test vlib/math/
pass cleanly (workaround a problem in V's cgen, that -cstrict discovered)
This commit is contained in:
parent
e66e9960d3
commit
4877417adf
@ -175,7 +175,7 @@ pub fn integer_from_radix(all_characters string, radix u32) !Integer {
|
||||
return error('math.big: Radix must be between 2 and 36 (inclusive)')
|
||||
}
|
||||
characters := all_characters.to_lower()
|
||||
validate_string(characters, radix)!
|
||||
validate_string(characters, radix) or { return err }
|
||||
return match radix {
|
||||
2 {
|
||||
integer_from_special_string(characters, 1)
|
||||
|
Loading…
x
Reference in New Issue
Block a user