math.unsigned: small fix after rename

pull/13200/head
Delyan Angelov 2022-01-17 11:35:02 +02:00
parent 851f265a5e
commit d1ac22e3bb
No known key found for this signature in database
GPG Key ID: 66886C0F12D595ED
2 changed files with 4 additions and 4 deletions

View File

@ -1,4 +1,4 @@
module uint module unsigned
import math.bits import math.bits
import encoding.binary import encoding.binary
@ -418,7 +418,7 @@ pub fn uint128_new(lo u64, hi u64) Uint128 {
} }
pub fn uint128_from_dec_str(value string) ?Uint128 { pub fn uint128_from_dec_str(value string) ?Uint128 {
mut res := uint.uint128_zero mut res := unsigned.uint128_zero
for b_ in value.bytes() { for b_ in value.bytes() {
b := b_ - '0'.bytes()[0] b := b_ - '0'.bytes()[0]
if b > 9 { if b > 9 {

View File

@ -1,4 +1,4 @@
module uint module unsigned
import math.bits import math.bits
@ -340,7 +340,7 @@ pub fn (u_ Uint256) str() string {
} }
pub fn uint256_from_dec_str(value string) ?Uint256 { pub fn uint256_from_dec_str(value string) ?Uint256 {
mut res := uint.uint256_zero mut res := unsigned.uint256_zero
for b_ in value.bytes() { for b_ in value.bytes() {
b := b_ - '0'.bytes()[0] b := b_ - '0'.bytes()[0]
if b > 9 { if b > 9 {