From b8945517723efaafa63df9ce52bb9d3fa3fceda5 Mon Sep 17 00:00:00 2001 From: Damien George Date: Sat, 19 Mar 2016 22:13:17 +0000 Subject: [PATCH] extmod/uctypes: Change param type from void* to byte*. --- extmod/moductypes.c | 4 ++-- 1 file 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) {