mirror of
https://github.com/byteworksinc/ORCA-C.git
synced 2024-06-10 07:29:32 +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;
|
end;
|
||||||
uminus : op1 := -op1; {unary -}
|
uminus : op1 := -op1; {unary -}
|
||||||
uand : op1 := 0; {unary &}
|
uand : op1 := 0; {unary &}
|
||||||
uasterisk : op1 := 0; {unary *}
|
uasterisk : Error(79); {unary *}
|
||||||
otherwise: Error(57);
|
otherwise: Error(57);
|
||||||
end; {case}
|
end; {case}
|
||||||
op^.token.kind := ekind;
|
op^.token.kind := ekind;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user