-
Notifications
You must be signed in to change notification settings - Fork 69
Open
Description
Getting the next opcode is sometimes done with PRENextOff(AlignToPtr(scan + REOpSz))^ and sometimes Inc(s, REOpSz + RENextOffSz)
It doesn't fail on many arch:
function AlignToPtr(const p: Pointer): Pointer; {$IFDEF InlineFuncs}inline;{$ENDIF}
begin
{$IFDEF FPC_REQUIRES_PROPER_ALIGNMENT}
Result := Align(p, SizeOf(Pointer));
{$ELSE}
Result := p;
{$ENDIF}
end;
But compile on an arch that requires align, and it should fail
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels