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:
@@ -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())
|
g.const_decl_write_precomputed(styp, cname, ct_value.str())
|
||||||
}
|
}
|
||||||
i64 {
|
i64 {
|
||||||
|
if typ == ast.i64_type {
|
||||||
|
return false
|
||||||
|
}
|
||||||
if typ == ast.int_type {
|
if typ == ast.int_type {
|
||||||
// TODO: use g.const_decl_write_precomputed here too.
|
// TODO: use g.const_decl_write_precomputed here too.
|
||||||
// For now, use #define macros, so existing code compiles
|
// For now, use #define macros, so existing code compiles
|
||||||
|
|||||||
Reference in New Issue
Block a user