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

parser: remove strconv import

This commit is contained in:
Alexander Medvednikov 2020-07-11 18:53:50 +02:00
parent 498c8cfc8e
commit d4dd5645fe

View File

@ -13,7 +13,6 @@ import v.errors
import os import os
import runtime import runtime
import time import time
import strconv
pub struct Parser { pub struct Parser {
file_name string // "/home/user/hello.v" file_name string // "/home/user/hello.v"
@ -1203,12 +1202,12 @@ fn (mut p Parser) string_expr() ast.Expr {
if fields[0].len > 0 && fields[0][0] == `0` { if fields[0].len > 0 && fields[0][0] == `0` {
fill = true fill = true
} }
fwidth = strconv.atoi(fields[0]) fwidth = fields[0].int()
if fwidthneg { if fwidthneg {
fwidth = -fwidth fwidth = -fwidth
} }
if fields.len > 1 { if fields.len > 1 {
precision = strconv.atoi(fields[1]) precision = fields[1].int()
} }
p.next() p.next()
} }