py/binary: Add missing "break" statements.

This commit is contained in:
Damien George 2017-07-04 02:11:46 +10:00
parent 80b31dc097
commit 9aeba3e41b

View File

@ -368,6 +368,7 @@ void mp_binary_set_val_array_from_int(char typecode, void *p, mp_uint_t index, m
#if MICROPY_LONGINT_IMPL != MICROPY_LONGINT_IMPL_NONE #if MICROPY_LONGINT_IMPL != MICROPY_LONGINT_IMPL_NONE
case 'q': case 'q':
((long long*)p)[index] = val; ((long long*)p)[index] = val;
break;
case 'Q': case 'Q':
((unsigned long long*)p)[index] = val; ((unsigned long long*)p)[index] = val;
break; break;
@ -383,5 +384,6 @@ void mp_binary_set_val_array_from_int(char typecode, void *p, mp_uint_t index, m
// Extension to CPython: array of pointers // Extension to CPython: array of pointers
case 'P': case 'P':
((void**)p)[index] = (void*)(uintptr_t)val; ((void**)p)[index] = (void*)(uintptr_t)val;
break;
} }
} }