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:
parent
ea960b2ce2
commit
d0ac69d12e
@ -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 << '-'
|
||||
|
Loading…
Reference in New Issue
Block a user