Skip to content

Commit 4877417

Browse files
committed
math.big: make ./v -prod -cstrict -cc gcc-11 test vlib/math/ pass cleanly (workaround a problem in V's cgen, that -cstrict discovered)
1 parent e66e996 commit 4877417

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

vlib/math/big/integer.v

+1-1
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ pub fn integer_from_radix(all_characters string, radix u32) !Integer {
175175
return error('math.big: Radix must be between 2 and 36 (inclusive)')
176176
}
177177
characters := all_characters.to_lower()
178-
validate_string(characters, radix)!
178+
validate_string(characters, radix) or { return err }
179179
return match radix {
180180
2 {
181181
integer_from_special_string(characters, 1)

0 commit comments

Comments
 (0)