mirror of
https://github.com/byteworksinc/ORCA-C.git
synced 2025-04-14 19:37:03 +00:00
Disallow the application of the unary * operator to integer constants.
It must only be applied to pointer types.
This commit is contained in:
parent
4c0b02f32e
commit
60df52c268
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user