소스 검색

minior tweak

KngStr 4 년 전
부모
커밋
048a07a8e6
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      Source/ksString.pas

+ 2 - 2
Source/ksString.pas

@@ -306,7 +306,7 @@ begin
 
   LSize := Trim(AUnit);
   case Length(LSize) of
-    1,2: Result := SizeUnitToInt(LSize[Low(LSize)]);
+    1,2: Result := SizeUnitToInt(PChar(AUnit)^);
   end;
 end;
 
@@ -358,7 +358,7 @@ begin
     end;
 
   if s <> '' then
-    Result := StrToUInt64Def(s, Result) * SizeUnitToInt(c);
+    Result := StrToInt64Def(s, Result) * SizeUnitToInt(c);
 end;
 
 function GetStrParamStr(P: PChar; var Param: String): PChar;