diff --git a/py/binary.c b/py/binary.c index 783a48efdc..919ba87846 100644 --- a/py/binary.c +++ b/py/binary.c @@ -58,6 +58,8 @@ int mp_binary_get_size(char struct_type, char val_type, mp_uint_t *palign) { size = 4; break; case 'q': case 'Q': size = 8; break; + case 'P': case 'O': case 'S': + size = sizeof(void*); break; } break; case '@': {