commit | b11b85adaac9ac2e460647e59f951f5086cd2d4e | [log] [tgz] |
---|---|---|
author | Damien George <damien.p.george@gmail.com> | Fri Apr 18 22:59:24 2014 +0100 |
committer | Damien George <damien.p.george@gmail.com> | Fri Apr 18 22:59:24 2014 +0100 |
tree | c0c2e5b3159cc7e6455e9614ce93c5e432029428 | |
parent | a8f5d15fc6f2ee988e028ce8a5fc9f50c17309f4 [diff] [blame] |
py: Allow to pass buffer protocol flags to get_buffer helper funcs.
diff --git a/py/objint.c b/py/objint.c index 8bec4a3..110876e 100644 --- a/py/objint.c +++ b/py/objint.c
@@ -273,7 +273,7 @@ // 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;