> How can I rewrite this code to make it correct? I want to use
constants to calculate offsets from untyped pointer.
You don't have to:
http://wiki.freepascal.org/Lazarus_Faq#.27Fatal:_Internal_error_YYZZW.27
so just report and wait for a fix, or fix it yourself if you can then post a
patch
On 9/29/2014 5:48 AM, Victor Matuzenko wrote:
IMO the problem is the transformation -1 into an unsigned value.
(Unsigned(-1) > Max(Signed).)
How can I rewrite this code to make it correct? I want to use
constants to calculate offsets from untyped pointer.
have you tried using a typed const?
c
Hi!
I have a large project and it compiles under 32 bits cpu,
but doesn't under 64 bits. Here is a minimal problematic
part:
=
[doj@larion ~/temp]$ cat ptrtransform.pas
{$MODE OBJFPC}
const
C = -1;
var
A: array[0..1] of Pointer;
begin
Wri