diff options
Diffstat (limited to 'py/objint.c')
-rw-r--r-- | py/objint.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/py/objint.c b/py/objint.c index 2c71f51cd..110876e00 100644 --- a/py/objint.c +++ b/py/objint.c @@ -272,8 +272,8 @@ STATIC mp_obj_t int_from_bytes(uint n_args, const mp_obj_t *args) { // TODO: Support signed param (assumes signed=False at the moment) // get the buffer info - buffer_info_t bufinfo; - mp_get_buffer_raise(args[1], &bufinfo); + mp_buffer_info_t bufinfo; + mp_get_buffer_raise(args[1], &bufinfo, MP_BUFFER_READ); // convert the bytes to an integer machine_uint_t value = 0; |