Skip to content

Commit b894551

Browse files
committed
extmod/uctypes: Change param type from void* to byte*.
1 parent da161fd commit b894551

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

extmod/moductypes.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -281,10 +281,10 @@ STATIC mp_obj_t uctypes_struct_sizeof(mp_obj_t obj_in) {
281281
}
282282
STATIC MP_DEFINE_CONST_FUN_OBJ_1(uctypes_struct_sizeof_obj, uctypes_struct_sizeof);
283283

284-
STATIC inline mp_obj_t get_unaligned(uint val_type, void *p, int big_endian) {
284+
STATIC inline mp_obj_t get_unaligned(uint val_type, byte *p, int big_endian) {
285285
char struct_type = big_endian ? '>' : '<';
286286
static const char type2char[16] = "BbHhIiQq------fd";
287-
return mp_binary_get_val(struct_type, type2char[val_type], (byte**)&p);
287+
return mp_binary_get_val(struct_type, type2char[val_type], &p);
288288
}
289289

290290
STATIC inline void set_unaligned(uint val_type, byte *p, int big_endian, mp_obj_t val) {

0 commit comments

Comments
 (0)