Skip to content

Commit

Permalink
extmod/modframebuf: Use correct initialization for .locals_dict.
Browse files Browse the repository at this point in the history
  • Loading branch information
pfalcon committed Jul 29, 2017
1 parent 4564504 commit 036b582
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion extmod/modframebuf.c
Original file line number Diff line number Diff line change
Expand Up @@ -549,7 +549,7 @@ STATIC const mp_obj_type_t mp_type_framebuf = {
.name = MP_QSTR_FrameBuffer,
.make_new = framebuf_make_new,
.buffer_p = { .get_buffer = framebuf_get_buffer },
.locals_dict = (mp_obj_t)&framebuf_locals_dict,
.locals_dict = (mp_obj_dict_t*)&framebuf_locals_dict,
};

// this factory function is provided for backwards compatibility with old FrameBuffer1 class
Expand Down

0 comments on commit 036b582

Please sign in to comment.