瀏覽代碼

* Fix compilation on 16-bit targets

git-svn-id: trunk@41961 -
michael 6 年之前
父節點
當前提交
858030d826
共有 1 個文件被更改,包括 3 次插入3 次删除
  1. 3 3
      packages/rtl-objpas/src/inc/dateutil.inc

+ 3 - 3
packages/rtl-objpas/src/inc/dateutil.inc

@@ -2723,7 +2723,7 @@ end;
 
 function TryISOStrToDate(const aString: string; out outDate: TDateTime): Boolean;
 var
-  xYear, xMonth, xDay: Integer;
+  xYear, xMonth, xDay: LongInt;
 begin
   case Length(aString) of
     8: Result :=
@@ -2746,7 +2746,7 @@ end;
 
 function TryISOStrToTime(const aString: string; Out outTime: TDateTime): Boolean;
 var
-  xHour, xMinute, xSecond, xMillisecond, xLength: Integer;
+  xHour, xMinute, xSecond, xMillisecond, xLength: LongInt;
 begin
   Result := True;
   xLength := Length(aString);
@@ -2860,7 +2860,7 @@ end;
 Function TryISOTZStrToTZOffset(TZ : String; Out TZOffset : Integer) : boolean;
 
 Var
-  H,M : Integer;
+  H,M : LongInt;
 
 begin
   Result:=(TZ='Z') or (TZ='');