Are you sure, that you have padded the structure correct?
jack wrote:Code: Select all
Structure mp_int
used.l
alloc.l
sign.l
*dp
pad.l
EndStructure
If it is a C-Structure, the correct padding for 64 bit would be:
Code: Select all
Structure mp_int
used.l
alloc.l
sign.l
pad.l
*dp
EndStructure
Better use Align and you have no trouble with correct padding and no problems with 32 or 64 compilation:
Code: Select all
Structure mp_int Align #PB_Structure_AlignC
used.l
alloc.l
sign.l
*dp
EndStructure
P.S.: Be careful. In some cases Align gives wrong results (Pb 5.11), but no problem in this structure. I think rest will be corrected with the next Pb version