Explorar o código

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

git-svn-id: trunk@2373 -
michael %!s(int64=19) %!d(string=hai) anos
pai
achega
dcb932d367
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      rtl/objpas/strutils.pp

+ 1 - 1
rtl/objpas/strutils.pp

@@ -1156,7 +1156,7 @@ begin
     HexStr:='$'+ S
   else
     HexStr:=S;
-  Result:=StrTointDef(HexStr,0);
+  Result:=StrToInt(HexStr);
 end;
 
 function Dec2Numb(N: Longint; Len, Base: Byte): string;