diff options
author | Damien George <damien.p.george@gmail.com> | 2014-04-18 22:59:24 +0100 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2014-04-18 22:59:24 +0100 |
commit | b11b85adaac9ac2e460647e59f951f5086cd2d4e (patch) | |
tree | c0c2e5b3159cc7e6455e9614ce93c5e432029428 /py/objint.c | |
parent | a8f5d15fc6f2ee988e028ce8a5fc9f50c17309f4 (diff) |
py: Allow to pass buffer protocol flags to get_buffer helper funcs.
Diffstat (limited to 'py/objint.c')
-rw-r--r-- | py/objint.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/py/objint.c b/py/objint.c index 8bec4a3e3..110876e00 100644 --- a/py/objint.c +++ b/py/objint.c @@ -273,7 +273,7 @@ STATIC mp_obj_t int_from_bytes(uint n_args, const mp_obj_t *args) { // get the buffer info mp_buffer_info_t bufinfo; - mp_get_buffer_raise(args[1], &bufinfo); + mp_get_buffer_raise(args[1], &bufinfo, MP_BUFFER_READ); // convert the bytes to an integer machine_uint_t value = 0; |