diff options
author | Damien George <damien.p.george@gmail.com> | 2014-09-06 18:39:39 +0100 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2014-09-06 18:39:39 +0100 |
commit | 33b50a02176bcf4f7114498f9925003808d6e53f (patch) | |
tree | 8429efb0fddd5b567a1fc6fbcde421a24471282c /py/binary.c | |
parent | c7a79284bb13671d8829c68f28c6839fa0b76054 (diff) | |
parent | 78fde4819c2e56365947dcfcc686d447c1d75f09 (diff) | |
download | micropython-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.c | 2 |
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 '@': { |