mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
math: move the math.mathutil generic min/max/abs fns to math (#13042)
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
module scanner
|
||||
|
||||
import os
|
||||
import math.mathutil
|
||||
import math
|
||||
import toml.input
|
||||
import toml.token
|
||||
import toml.util
|
||||
@@ -328,7 +328,7 @@ fn (mut s Scanner) new_token(kind token.Kind, lit string, len int) token.Token {
|
||||
return token.Token{
|
||||
kind: kind
|
||||
lit: lit
|
||||
col: mathutil.max(1, col)
|
||||
col: math.max(1, col)
|
||||
line_nr: s.line_nr + 1
|
||||
pos: s.pos - s.header_len - len + 1
|
||||
len: len
|
||||
|
||||
Reference in New Issue
Block a user