compiler: hide the u64 warning for now

pull/4110/head
Alexander Medvednikov 2020-03-23 21:00:20 +01:00
parent 1cb45e9916
commit 9c536f2233
1 changed files with 1 additions and 1 deletions

View File

@ -565,7 +565,7 @@ fn (p mut Parser) cast(typ string) {
p.expected_type = typ p.expected_type = typ
expr_typ := p.bool_expression() expr_typ := p.bool_expression()
// Do not allow `int(my_int)` // 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') p.warn('casting `$typ` to `$expr_typ` is not needed')
} }
// `face := FT_Face(cobj)` => `FT_Face face = *((FT_Face*)cobj);` // `face := FT_Face(cobj)` => `FT_Face face = *((FT_Face*)cobj);`