mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-15 05:59:30 +02:00
Typecasting to int64 type fixes the exception.
This commit is contained in:
parent
749c8110b6
commit
aa82a2e446
@ -995,9 +995,8 @@ begin
|
||||
TWSFramePayload.CopyMasked(Payload.Data,Buffer,Payload.MaskKey,aOffset);
|
||||
end
|
||||
else
|
||||
if Payload.DataLength > 0 then
|
||||
for I:=0 to Payload.DataLength-1 do
|
||||
buffer[aOffset + I]:=Payload.Data[I];
|
||||
for I:=0 to int64(Payload.DataLength)-1 do
|
||||
buffer[aOffset + I]:=Payload.Data[I];
|
||||
|
||||
Result := Buffer;
|
||||
end;
|
||||
|
Loading…
Reference in New Issue
Block a user