diff options
| author | Damien George | 2016-03-19 22:13:17 +0000 |
|---|---|---|
| committer | Damien George | 2016-03-19 22:13:17 +0000 |
| commit | b8945517723efaafa63df9ce52bb9d3fa3fceda5 (patch) | |
| tree | 6aa0f1239f4bbd98b02727282ac61d674001fcc6 /extmod/moductypes.c | |
| parent | da161fd9f025b624547b6ed5f74a0d30928310f1 (diff) | |
extmod/uctypes: Change param type from void* to byte*.
Diffstat (limited to 'extmod/moductypes.c')
| -rw-r--r-- | extmod/moductypes.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/extmod/moductypes.c b/extmod/moductypes.c index cafb2cfb6..a3071af98 100644 --- a/extmod/moductypes.c +++ b/extmod/moductypes.c @@ -281,10 +281,10 @@ STATIC mp_obj_t uctypes_struct_sizeof(mp_obj_t obj_in) { } STATIC MP_DEFINE_CONST_FUN_OBJ_1(uctypes_struct_sizeof_obj, uctypes_struct_sizeof); -STATIC inline mp_obj_t get_unaligned(uint val_type, void *p, int big_endian) { +STATIC inline mp_obj_t get_unaligned(uint val_type, byte *p, int big_endian) { char struct_type = big_endian ? '>' : '<'; static const char type2char[16] = "BbHhIiQq------fd"; - return mp_binary_get_val(struct_type, type2char[val_type], (byte**)&p); + return mp_binary_get_val(struct_type, type2char[val_type], &p); } STATIC inline void set_unaligned(uint val_type, byte *p, int big_endian, mp_obj_t val) { |
