mirror of
https://github.com/byteworksinc/ORCA-C.git
synced 2024-06-15 23:29:44 +00:00
Remove bogus code for applying unary &, ++, and -- operators to integer constants.
This is already precluded from executing by an earlier test, so there is no functional change.
This commit is contained in:
parent
7ab1875b54
commit
cd9a424499
|
@ -1311,17 +1311,12 @@ var
|
|||
dispose(op^.left);
|
||||
op^.left := nil;
|
||||
case op^.token.kind of
|
||||
opplusplus, {posfix ++}
|
||||
plusplusop : op1 := op1+1; {prefix ++}
|
||||
opminusminus, {postfix --}
|
||||
minusminusop: op1 := op1-1; {prefix --}
|
||||
tildech : op1 := ~op1; {~}
|
||||
excch : begin {!}
|
||||
op1 := ord(op1 = 0);
|
||||
ekind := intconst;
|
||||
end;
|
||||
uminus : op1 := -op1; {unary -}
|
||||
uand : op1 := 0; {unary &}
|
||||
uasterisk : Error(79); {unary *}
|
||||
otherwise: Error(57);
|
||||
end; {case}
|
||||
|
|
Loading…
Reference in New Issue
Block a user