1 parent f04329e commit 8427c5bCopy full SHA for 8427c5b
1 file changed
unix/main.c
@@ -440,7 +440,7 @@ int main(int argc, char **argv) {
440
nlr_pop();
441
} else {
442
// uncaught exception
443
- return handle_uncaught_exception((mp_obj_t)nlr.ret_val);
+ return handle_uncaught_exception((mp_obj_t)nlr.ret_val) & 0xff;
444
}
445
446
if (mp_obj_is_package(mod)) {
@@ -504,7 +504,7 @@ int main(int argc, char **argv) {
504
#endif
505
506
//printf("total bytes = %d\n", m_get_total_bytes_allocated());
507
- return ret;
+ return ret & 0xff;
508
509
510
uint mp_import_stat(const char *path) {
0 commit comments