[fpc-devel] Possible error in generated code for arm?

Alexander Grotewohl alex at dcclost.com
Wed Apr 22 14:38:51 CEST 2020


same.. lol

--
Alexander Grotewohl
https://dcclost.com
________________________________
From: fpc-devel <fpc-devel-bounces at lists.freepascal.org> on behalf of Michael Ring via fpc-devel <fpc-devel at lists.freepascal.org>
Sent: Wednesday, April 22, 2020 8:21:55 AM
To: fpc-devel at lists.freepascal.org <fpc-devel at lists.freepascal.org>
Cc: Michael Ring <mail at michael-ring.org>
Subject: Re: [fpc-devel] Possible error in generated code for arm?

AAAAArrrrrrrrrggggghhhhhhhh.......

I feel completely stupid!!!!!

Thank you for the Hint Jonas, using pxBuffer^ did the trick!

Michael


Am 22.04.20 um 11:15 schrieb Jonas Maebe:
> 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
> _______________________________________________
> fpc-devel maillist  -  fpc-devel at lists.freepascal.org
> https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel
_______________________________________________
fpc-devel maillist  -  fpc-devel at lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-devel/attachments/20200422/6b355081/attachment.html>


More information about the fpc-devel mailing list