1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

parser: fix sizeof(&Foo)

This commit is contained in:
Alexander Medvednikov 2020-04-11 18:38:25 +02:00
parent ea960b2ce2
commit d0ac69d12e

View File

@ -778,9 +778,6 @@ pub fn (p mut Parser) expr(precedence int) ast.Expr {
.key_sizeof {
p.next() // sizeof
p.check(.lpar)
if p.tok.kind == .amp {
p.next()
}
if p.tok.lit == 'C' {
p.next()
p.check(.dot)
@ -1276,7 +1273,6 @@ fn (p mut Parser) string_expr() ast.Expr {
if p.tok.kind == .colon {
efmt << ':'
p.next()
// ${num:-2d}
if p.tok.kind == .minus {
efmt << '-'