diff options
author | Damien George <damien.p.george@gmail.com> | 2014-04-18 22:29:21 +0100 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2014-04-18 22:29:21 +0100 |
commit | 57a4b4f178698435b584892f69db5d5f2ea396dc (patch) | |
tree | b38aac7f18d31f714c2029a0a6e3f93e36447295 /py/objint.c | |
parent | 3fd2d7fad2022e3f26304fbc6ad74e6d8dd66e5f (diff) | |
download | micropython-57a4b4f178698435b584892f69db5d5f2ea396dc.tar.gz micropython-57a4b4f178698435b584892f69db5d5f2ea396dc.zip |
py: Add typecode to buffer protocol.
When querying an object that supports the buffer protocol, that object
must now return a typecode (as per binary.[ch]). This does not have to
be honoured by the caller, but can be useful for determining element
size.
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 2c71f51cd1..8bec4a3e3f 100644 --- a/py/objint.c +++ b/py/objint.c @@ -272,7 +272,7 @@ 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_buffer_info_t bufinfo; mp_get_buffer_raise(args[1], &bufinfo); // convert the bytes to an integer |