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

ci: fix v test-cleancode

This commit is contained in:
Delyan Angelov
2021-01-25 11:26:20 +02:00
parent 94fd3ff431
commit 728344ff65
49 changed files with 353 additions and 356 deletions

View File

@ -112,7 +112,7 @@ pub fn from_string(input string) Number {
mut n := from_int(0)
for _, c in input {
d := from_int(int(c - `0`))
n = (n * ten) + d
n = (n * big.ten) + d
}
return n
}
@ -136,7 +136,7 @@ pub fn (n Number) str() string {
mut x := n.clone()
div := Number{}
for !x.is_zero() {
mod := divmod(&x, &ten, &div)
mod := divmod(&x, &big.ten, &div)
digits << byte(mod.int()) + `0`
x = div
}