From 263853ef84393ed4af0bee73846abaf4cf131c99 Mon Sep 17 00:00:00 2001 From: Paul Sokolovsky Date: Fri, 11 Apr 2014 05:17:41 +0300 Subject: [PATCH] modffi: Update for latest binary API refactors. --- unix/modffi.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/unix/modffi.c b/unix/modffi.c index 8764cb7c9e..cb6a4424f3 100644 --- a/unix/modffi.c +++ b/unix/modffi.c @@ -310,13 +310,13 @@ STATIC void ffivar_print(void (*print)(void *env, const char *fmt, ...), void *e STATIC mp_obj_t ffivar_get(mp_obj_t self_in) { mp_obj_ffivar_t *self = self_in; - return mp_binary_get_val(self->type, self->var, 0); + return mp_binary_get_val_array(self->type, self->var, 0); } MP_DEFINE_CONST_FUN_OBJ_1(ffivar_get_obj, ffivar_get); STATIC mp_obj_t ffivar_set(mp_obj_t self_in, mp_obj_t val_in) { mp_obj_ffivar_t *self = self_in; - mp_binary_set_val(self->type, self->var, 0, val_in); + mp_binary_set_val_array(self->type, self->var, 0, val_in); return mp_const_none; } MP_DEFINE_CONST_FUN_OBJ_2(ffivar_set_obj, ffivar_set);