Allow negated long long constants in cc= defines.

These are still treated as one token, like other negated numbers specified in cc=(-d...).
This commit is contained in:
Stephen Heumann 2022-02-06 15:33:26 -06:00
parent efb363a04d
commit 5f03dee66a

View File

@ -4303,7 +4303,14 @@ repeat
intConstant : token.ival := -token.ival;
longConstant : token.lval := -token.lval;
realConstant : token.rval := -token.rval;
longlongConstant,otherwise: Error(108);
longlongConstant: begin
token.qval.lo := ~token.qval.lo;
token.qval.hi := ~token.qval.hi;
token.qval.lo := token.qval.lo + 1;
if token.qval.lo = 0 then
token.qval.hi := token.qval.hi + 1;
end;
otherwise: Error(108);
end; {case}
end {if}
else