summaryrefslogtreecommitdiffstatshomepage
path: root/py/binary.c
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2014-09-06 18:39:39 +0100
committerDamien George <damien.p.george@gmail.com>2014-09-06 18:39:39 +0100
commit33b50a02176bcf4f7114498f9925003808d6e53f (patch)
tree8429efb0fddd5b567a1fc6fbcde421a24471282c /py/binary.c
parentc7a79284bb13671d8829c68f28c6839fa0b76054 (diff)
parent78fde4819c2e56365947dcfcc686d447c1d75f09 (diff)
downloadmicropython-33b50a02176bcf4f7114498f9925003808d6e53f.tar.gz
micropython-33b50a02176bcf4f7114498f9925003808d6e53f.zip
Merge branch 'master' of github.com:micropython/micropython
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 '@': {