From 9c536f2233a6b37149a4a4faee79eaee49e67025 Mon Sep 17 00:00:00 2001 From: Alexander Medvednikov Date: Mon, 23 Mar 2020 21:00:20 +0100 Subject: [PATCH] compiler: hide the u64 warning for now --- vlib/compiler/gen_c.v | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vlib/compiler/gen_c.v b/vlib/compiler/gen_c.v index 40496c61f2..78b8f70131 100644 --- a/vlib/compiler/gen_c.v +++ b/vlib/compiler/gen_c.v @@ -565,7 +565,7 @@ fn (p mut Parser) cast(typ string) { p.expected_type = typ expr_typ := p.bool_expression() // Do not allow `int(my_int)` - if expr_typ == typ { + if expr_typ == typ && typ != 'u64' { p.warn('casting `$typ` to `$expr_typ` is not needed') } // `face := FT_Face(cobj)` => `FT_Face face = *((FT_Face*)cobj);`