From 60df52c268e50cb31f0d793d42f5e396db5e076c Mon Sep 17 00:00:00 2001 From: Stephen Heumann Date: Mon, 19 Dec 2016 22:19:36 -0600 Subject: [PATCH] Disallow the application of the unary * operator to integer constants. It must only be applied to pointer types. --- Expression.pas | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Expression.pas b/Expression.pas index 1f05248..e28e5d6 100644 --- a/Expression.pas +++ b/Expression.pas @@ -1302,7 +1302,7 @@ var end; uminus : op1 := -op1; {unary -} uand : op1 := 0; {unary &} - uasterisk : op1 := 0; {unary *} + uasterisk : Error(79); {unary *} otherwise: Error(57); end; {case} op^.token.kind := ekind;