mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-23 15:49:39 +02:00
* Fixed warning and notes.
git-svn-id: trunk@10899 -
This commit is contained in:
parent
e2634e0b8d
commit
d1dd8bd928
rtl
@ -1711,7 +1711,7 @@ function SwapEndian(const AValue: SmallInt): SmallInt;
|
||||
{ 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 }
|
||||
{ zeroes. }
|
||||
Result := SmallInt((Word(AValue) shr 8) or (AValue shl 8));
|
||||
Result := SmallInt((Word(AValue) shr 8) or (Word(AValue) shl 8));
|
||||
end;
|
||||
|
||||
|
||||
|
@ -1014,7 +1014,6 @@ Function ErrorWrite(Var F: TextRec): Integer;
|
||||
An error message should always end with #13#10#13#10
|
||||
}
|
||||
var
|
||||
p : pchar;
|
||||
i : longint;
|
||||
Begin
|
||||
while F.BufPos>0 do
|
||||
|
@ -1674,7 +1674,6 @@ Function ErrorWrite(Var F: TextRec): Integer;
|
||||
An error message should always end with #13#10#13#10
|
||||
}
|
||||
var
|
||||
p : pchar;
|
||||
i : longint;
|
||||
Begin
|
||||
while F.BufPos>0 do
|
||||
|
Loading…
Reference in New Issue
Block a user