mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-05 07:50:27 +02:00
+ Patch from Michalis Kamburelis to fix hex2dec behaviour in case of error
git-svn-id: trunk@2373 -
This commit is contained in:
parent
8c408e67fd
commit
dcb932d367
@ -1156,7 +1156,7 @@ begin
|
|||||||
HexStr:='$'+ S
|
HexStr:='$'+ S
|
||||||
else
|
else
|
||||||
HexStr:=S;
|
HexStr:=S;
|
||||||
Result:=StrTointDef(HexStr,0);
|
Result:=StrToInt(HexStr);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
function Dec2Numb(N: Longint; Len, Base: Byte): string;
|
function Dec2Numb(N: Longint; Len, Base: Byte): string;
|
||||||
|
Loading…
Reference in New Issue
Block a user