codetools: h2p: fixed parsing c decimal number

git-svn-id: trunk@14557 -
This commit is contained in:
mattias 2008-03-17 17:47:57 +00:00
parent 3b1f623c30
commit bd6c6feddd
2 changed files with 2 additions and 1 deletions

View File

@ -528,7 +528,7 @@ begin
dec(ConstantNumber)
else
ConstantNumber:=0;
ConstantCode:=IntToStr(ConstantNumber-1);
ConstantCode:=IntToStr(ConstantNumber);
end else begin
ConstantCode:=ConstantCode+'-1';
end;

View File

@ -361,6 +361,7 @@ begin
if p>0 then exit;
try
i:=StrToInt64(s);
Result:=true;
except
end;
end;