py/mpprint: Prevent case fall-through when assert is disabled.
@@ -557,13 +557,10 @@ int mp_vprintf(const mp_print_t *print, const char *fmt, va_list args) {
case 'l': {
unsigned long long int arg_value = va_arg(args, unsigned long long int);
++fmt;
- if (*fmt == 'u' || *fmt == 'd') {
+ assert(*fmt == 'u' || *fmt == 'd' || !"unsupported fmt char");
chrs += mp_print_int(print, arg_value, *fmt == 'd', 10, 'a', flags, fill, width);
break;
}
- assert(!"unsupported fmt char");
- break;
- }
#endif
case 'o':
case 'r': {
