Use special version of nlr_raise again.

This commit is contained in:
Kwabena W. Agyeman 2017-10-17 01:14:57 -04:00
parent 39e8ee73fc
commit 1748000e4d
2 changed files with 2 additions and 2 deletions

@ -1 +1 @@
Subproject commit cc69b65d7e2e15af3d4e7e4640c2b8c004a11987
Subproject commit 2722bf352936d2984444a6efaecb67e210404547

View File

@ -36,7 +36,7 @@ void fb_alloc_mark()
// Check if allocation overwrites the framebuffer pixels
if (new_pointer < (char *) MAIN_FB_PIXELS()) {
nlr_raise(mp_obj_new_exception_msg(&mp_type_MemoryError, "FB Alloc Collision!!!"));
nlr_raise_for_fb_alloc_mark(mp_obj_new_exception_msg(&mp_type_MemoryError, "FB Alloc Collision!!!"));
}
// fb_alloc does not allow regions which are a size of 0 to be alloced,