[fpc-devel] Possible error in generated code for arm?
Jonas Maebe
jonas at freepascal.org
Wed Apr 22 11:15:53 CEST 2020
On 22/04/2020 00:09, Michael Ring via fpc-devel wrote:
> function memset(pxBuffer:pointer; value : byte; count : Tsize):pointer;
> cdecl;
> begin
> FillChar(pxBuffer,count,value);
> Result := pxBuffer;
> end;
You need pxBuffer^ instead of pxBuffer (you want to fill the block to
which pxBuffer points, not the 4 bytes of pxBuffer itself).
Jonas
More information about the fpc-devel
mailing list