fixed typos in mod/ffi.c
This commit is contained in:
parent
42df4239a6
commit
018a4790d0
@ -297,7 +297,7 @@ static MOO_INLINE int add_ffi_arg (moo_t* moo, ffi_t* ffi, moo_ooch_t fmtc, int
|
|||||||
if (_unsigned)
|
if (_unsigned)
|
||||||
{
|
{
|
||||||
#if defined(USE_DYNCALL)
|
#if defined(USE_DYNCALL)
|
||||||
dcArgChar (ffi->dc, v);
|
dcArgChar (ffi->dc, MOO_OOP_TO_CHAR(arg));
|
||||||
#elif defined(USE_LIBFFI)
|
#elif defined(USE_LIBFFI)
|
||||||
ffi->arg_values[ffi->arg_count] = &ffi->arg_svs[ffi->arg_count].uc;
|
ffi->arg_values[ffi->arg_count] = &ffi->arg_svs[ffi->arg_count].uc;
|
||||||
ffi->arg_svs[ffi->arg_count].uc = MOO_OOP_TO_CHAR(arg);
|
ffi->arg_svs[ffi->arg_count].uc = MOO_OOP_TO_CHAR(arg);
|
||||||
@ -306,7 +306,7 @@ static MOO_INLINE int add_ffi_arg (moo_t* moo, ffi_t* ffi, moo_ooch_t fmtc, int
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
#if defined(USE_DYNCALL)
|
#if defined(USE_DYNCALL)
|
||||||
dcArgChar (ffi->dc, v);
|
dcArgChar (ffi->dc, MOO_OOP_TO_CHAR(arg));
|
||||||
#elif defined(USE_LIBFFI)
|
#elif defined(USE_LIBFFI)
|
||||||
ffi->arg_values[ffi->arg_count] = &ffi->arg_svs[ffi->arg_count].c;
|
ffi->arg_values[ffi->arg_count] = &ffi->arg_svs[ffi->arg_count].c;
|
||||||
ffi->arg_svs[ffi->arg_count].c = MOO_OOP_TO_CHAR(arg);
|
ffi->arg_svs[ffi->arg_count].c = MOO_OOP_TO_CHAR(arg);
|
||||||
@ -494,7 +494,7 @@ static MOO_INLINE int add_ffi_arg (moo_t* moo, ffi_t* ffi, moo_ooch_t fmtc, int
|
|||||||
ptr = MOO_OOP_TO_SMPTR(arg);
|
ptr = MOO_OOP_TO_SMPTR(arg);
|
||||||
|
|
||||||
#if defined(USE_DYNCALL)
|
#if defined(USE_DYNCALL)
|
||||||
dcArgPointer (ffic->dc, ptr);
|
dcArgPointer (ffi->dc, ptr);
|
||||||
#elif defined(USE_LIBFFI)
|
#elif defined(USE_LIBFFI)
|
||||||
ffi->arg_values[ffi->arg_count] = &ffi->arg_svs[ffi->arg_count].p;
|
ffi->arg_values[ffi->arg_count] = &ffi->arg_svs[ffi->arg_count].p;
|
||||||
ffi->arg_svs[ffi->arg_count].p = ptr;
|
ffi->arg_svs[ffi->arg_count].p = ptr;
|
||||||
|
Loading…
Reference in New Issue
Block a user