Browse Source

fcl-js: less hints

git-svn-id: trunk@40592 -
Mattias Gaertner 6 years ago
parent
commit
601c6476ea
1 changed files with 6 additions and 6 deletions
  1. 6 6
      packages/fcl-js/src/jswriter.pp

+ 6 - 6
packages/fcl-js/src/jswriter.pp

@@ -355,8 +355,8 @@ Var
 begin
 begin
   Result:=Length(S)*SizeOf(TJSWriterChar);
   Result:=Length(S)*SizeOf(TJSWriterChar);
   if Result=0 then exit;
   if Result=0 then exit;
-  MinLen:=Result+FBufPos;
-  If (MinLen>Capacity) then
+  MinLen:=Result+integer(FBufPos);
+  If (MinLen>integer(Capacity)) then
     begin
     begin
     DesLen:=(FCapacity*3) div 2;
     DesLen:=(FCapacity*3) div 2;
     if DesLen>MinLen then
     if DesLen>MinLen then
@@ -364,7 +364,7 @@ begin
     Capacity:=MinLen;
     Capacity:=MinLen;
     end;
     end;
   Move(S[1],FBuffer[FBufPos],Result);
   Move(S[1],FBuffer[FBufPos],Result);
-  FBufPos:=FBufPos+Result;
+  FBufPos:=integer(FBufPos)+Result;
 end;
 end;
 {$endif}
 {$endif}
 
 
@@ -377,8 +377,8 @@ Var
 begin
 begin
   Result:=Length(S)*SizeOf(UnicodeChar);
   Result:=Length(S)*SizeOf(UnicodeChar);
   if Result=0 then exit;
   if Result=0 then exit;
-  MinLen:=Result+FBufPos;
-  If (MinLen>Capacity) then
+  MinLen:=Result+integer(FBufPos);
+  If (MinLen>integer(Capacity)) then
     begin
     begin
     DesLen:=(FCapacity*3) div 2;
     DesLen:=(FCapacity*3) div 2;
     if DesLen>MinLen then
     if DesLen>MinLen then
@@ -386,7 +386,7 @@ begin
     Capacity:=MinLen;
     Capacity:=MinLen;
     end;
     end;
   Move(S[1],FBuffer[FBufPos],Result);
   Move(S[1],FBuffer[FBufPos],Result);
-  FBufPos:=FBufPos+Result;
+  FBufPos:=integer(FBufPos)+Result;
 end;
 end;
 {$endif}
 {$endif}