mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-18 02:59:17 +02:00
codetools: h2p: fixed parsing c decimal number
git-svn-id: trunk@14557 -
This commit is contained in:
parent
3b1f623c30
commit
bd6c6feddd
@ -528,7 +528,7 @@ begin
|
||||
dec(ConstantNumber)
|
||||
else
|
||||
ConstantNumber:=0;
|
||||
ConstantCode:=IntToStr(ConstantNumber-1);
|
||||
ConstantCode:=IntToStr(ConstantNumber);
|
||||
end else begin
|
||||
ConstantCode:=ConstantCode+'-1';
|
||||
end;
|
||||
|
@ -361,6 +361,7 @@ begin
|
||||
if p>0 then exit;
|
||||
try
|
||||
i:=StrToInt64(s);
|
||||
Result:=true;
|
||||
except
|
||||
end;
|
||||
end;
|
||||
|
Loading…
Reference in New Issue
Block a user