From 1355cf42f23a39d3b887d2771d8bc7f3669d211c Mon Sep 17 00:00:00 2001 From: Paul Sokolovsky Date: Sat, 19 Apr 2014 01:25:49 +0300 Subject: modstruct: Fix .calcsize() to account for struct type/alignment. --- py/binary.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'py/binary.h') diff --git a/py/binary.h b/py/binary.h index 538d6e7f29..54ff2dc56b 100644 --- a/py/binary.h +++ b/py/binary.h @@ -2,7 +2,7 @@ // (underlyingly they're same). #define BYTEARRAY_TYPECODE 0 -int mp_binary_get_size(char typecode); +int mp_binary_get_size(char struct_type, char val_type, uint *palign); mp_obj_t mp_binary_get_val_array(char typecode, void *p, int index); mp_obj_t mp_binary_get_val(char struct_type, char val_type, byte **ptr); void mp_binary_set_val_array(char typecode, void *p, int index, mp_obj_t val_in); -- cgit v1.2.3