fixed wrong computation of buffer capacity for moo->inttostr.xbuf and moo->inttostr.t

updated some sample code
fixed a few flaws in ffi.c
This commit is contained in:
hyunghwan.chung
2018-12-20 16:08:56 +00:00
parent fb7b226ea8
commit 9a4bbcaa4c
9 changed files with 65 additions and 54 deletions

View File

@ -7407,7 +7407,7 @@ static int make_defined_class (moo_t* moo)
for (i = 0; i < initv_count; i++)
{
MOO_STORE_OOP (moo, &cc->self_oop->cvar[i], initv->slot[i]);
MOO_STORE_OOP (moo, &cc->self_oop->cvar[i], MOO_OBJ_GET_OOP_VAL(initv, i));
}
}