hi
this code compile without error in delphi mode , but raise an error of incompatible type in objfpc mode .
how to get this code work in objfpc mode ?
type
PLongArray = ^TLongArray;
TlongArray = array[0..1] of longword;
var
map : ^byte;
begin
GetMem(map,256*256);
PlongArray(map)[1] := $ffff; // -Mobjfpc : Error : Incompatible types : got "word" expected "TlongArray"
FreeMem(map);
end.
thanks