Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions general/sdStreams.pas
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ function TsdFastMemStream.Read(var Buffer; Count: Integer): Longint;
begin
if Result > Count then
Result := Count;
Move(Pointer(Longint(FMemory) + FPosition)^, Buffer, Result);
Move(Pointer(PByte(FMemory) + FPosition)^, Buffer, Result);
Inc(FPosition, Result);
Exit;
end;
Expand Down Expand Up @@ -215,7 +215,7 @@ function TsdFastMemStream.Write(const Buffer; Count: Integer): Longint;
SetCapacity(NewPos);
FSize := NewPos;
end;
System.Move(Buffer, Pointer(Longint(FMemory) + FPosition)^, Count);
System.Move(Buffer, Pointer(PByte(FMemory) + FPosition)^, Count);
FPosition := NewPos;
Result := Count;
Exit;
Expand Down