Browse Source

+ Patch from Michalis Kamburelis to fix hex2dec behaviour in case of error

git-svn-id: trunk@2373 -
michael 19 years ago
parent
commit
dcb932d367
1 changed files with 1 additions and 1 deletions
  1. 1 1
      rtl/objpas/strutils.pp

+ 1 - 1
rtl/objpas/strutils.pp

@@ -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;