1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

crypto, math: change option to result (#17580)

This commit is contained in:
yuyi
2023-03-10 16:31:05 +08:00
committed by GitHub
parent 32d09544d7
commit b42a3f43a5
2 changed files with 2 additions and 2 deletions

View File

@@ -417,7 +417,7 @@ pub fn uint128_new(lo u64, hi u64) Uint128 {
return Uint128{lo, hi}
}
pub fn uint128_from_dec_str(value string) ?Uint128 {
pub fn uint128_from_dec_str(value string) !Uint128 {
mut res := unsigned.uint128_zero
for b_ in value.bytes() {
b := b_ - '0'.bytes()[0]