diff options
Diffstat (limited to 'src/parse.cff')
| -rw-r--r-- | src/parse.cff | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/parse.cff b/src/parse.cff index 11c17cc..a1f0dd0 100644 --- a/src/parse.cff +++ b/src/parse.cff @@ -1609,8 +1609,8 @@ fn pexpostfix(P *Parser) Expr { ty = ty.u.Ptr; } switch ty.u { - case Slice; - ex = { tok.loc, ty_usize, :SPtr(exprdup(P.alloc, ex)) }; + case Slice sl; + ex = { tok.loc, mkptrtype(sl), :SPtr(exprdup(P.alloc, ex)) }; case else; fatal(P, ex.loc, "invalid operand to `#len' (%t)", ex.ty); } |