summaryrefslogtreecommitdiffstatshomepage
path: root/py/binary.c
diff options
context:
space:
mode:
Diffstat (limited to 'py/binary.c')
-rw-r--r--py/binary.c2
1 files changed, 2 insertions, 0 deletions
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 '@': {