experiment with unaligned address in ffi
This commit is contained in:
@ -840,7 +840,7 @@ int moo_genpfmethod (moo_t* moo, moo_mod_t* mod, moo_oop_class_t _class, moo_met
|
||||
goto oops;
|
||||
}
|
||||
|
||||
mnsym = (moo_oop_char_t)moo_makesymbol (moo, mthname, i);
|
||||
mnsym = (moo_oop_char_t)moo_makesymbol(moo, mthname, i);
|
||||
if (!mnsym) goto oops;
|
||||
moo_pushvolat (moo, (moo_oop_t*)&mnsym); tmp_count++;
|
||||
|
||||
|
@ -282,7 +282,7 @@ static MOO_INLINE moo_oop_t _fetch_raw_uint (moo_t* moo, moo_uint8_t* rawptr, mo
|
||||
return MOO_NULL;
|
||||
}
|
||||
|
||||
return moo_oowtoint (moo, v);
|
||||
return moo_oowtoint(moo, v);
|
||||
}
|
||||
|
||||
|
||||
@ -1093,7 +1093,7 @@ moo_pfrc_t moo_pf_smptr_as_string (moo_t* moo, moo_mod_t* mod, moo_ooi_t nargs)
|
||||
ptr = MOO_OOP_TO_SMPTR(rcv);
|
||||
sprintptr (buf, (moo_oow_t)ptr, &len);
|
||||
|
||||
ss = moo_makestring (moo, buf, len);
|
||||
ss = moo_makestring(moo, buf, len);
|
||||
if (!ss) return MOO_PF_FAILURE;
|
||||
|
||||
MOO_STACK_SETRET (moo, nargs, ss);
|
||||
|
Reference in New Issue
Block a user