Răsfoiți Sursa

* Fixed warning and notes.

git-svn-id: trunk@10899 -
yury 17 ani în urmă
părinte
comite
d1dd8bd928
3 a modificat fișierele cu 1 adăugiri și 3 ștergeri
  1. 1 1
      rtl/inc/generic.inc
  2. 0 1
      rtl/win32/system.pp
  3. 0 1
      rtl/wince/system.pp

+ 1 - 1
rtl/inc/generic.inc

@@ -1711,7 +1711,7 @@ function SwapEndian(const AValue: SmallInt): SmallInt;
     { is turned into "longint(AValue) shr 8", so if AValue < 0 then    }
     { is turned into "longint(AValue) shr 8", so if AValue < 0 then    }
     { the sign bits from the upper 16 bits are shifted in rather than  }
     { the sign bits from the upper 16 bits are shifted in rather than  }
     { zeroes.                                                          }
     { zeroes.                                                          }
-    Result := SmallInt((Word(AValue) shr 8) or (AValue shl 8));
+    Result := SmallInt((Word(AValue) shr 8) or (Word(AValue) shl 8));
   end;
   end;
 
 
 
 

+ 0 - 1
rtl/win32/system.pp

@@ -1014,7 +1014,6 @@ Function ErrorWrite(Var F: TextRec): Integer;
   An error message should always end with #13#10#13#10
   An error message should always end with #13#10#13#10
 }
 }
 var
 var
-  p : pchar;
   i : longint;
   i : longint;
 Begin
 Begin
   while F.BufPos>0 do
   while F.BufPos>0 do

+ 0 - 1
rtl/wince/system.pp

@@ -1674,7 +1674,6 @@ Function ErrorWrite(Var F: TextRec): Integer;
   An error message should always end with #13#10#13#10
   An error message should always end with #13#10#13#10
 }
 }
 var
 var
-  p : pchar;
   i : longint;
   i : longint;
 Begin
 Begin
   while F.BufPos>0 do
   while F.BufPos>0 do