mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
ci: fix tools using import math
, for const x = i64(-9223372036854775807-1)
fails
This commit is contained in:
parent
06d1422a05
commit
f67922782e
@ -5028,6 +5028,9 @@ fn (mut g Gen) const_decl_precomputed(mod string, name string, ct_value ast.Comp
|
||||
g.const_decl_write_precomputed(styp, cname, ct_value.str())
|
||||
}
|
||||
i64 {
|
||||
if typ == ast.i64_type {
|
||||
return false
|
||||
}
|
||||
if typ == ast.int_type {
|
||||
// TODO: use g.const_decl_write_precomputed here too.
|
||||
// For now, use #define macros, so existing code compiles
|
||||
|
Loading…
Reference in New Issue
Block a user