Skip to content

Commit

Permalink
PNG/JPEGDEC: Use MP_ROM_QSTR.
Browse files Browse the repository at this point in the history
  • Loading branch information
Gadgetoid committed Jan 23, 2025
1 parent ef0d80b commit a41aa79
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion micropython/modules/jpegdec/jpegdec.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ void *jpegdec_open_callback(const char *filename, int32_t *size) {

mp_obj_t args[2] = {
fn,
MP_OBJ_NEW_QSTR(MP_QSTR_r),
MP_ROM_QSTR(MP_QSTR_r),
};

// Stat the file to get its size
Expand Down
2 changes: 1 addition & 1 deletion micropython/modules/pngdec/pngdec.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ void *pngdec_open_callback(const char *filename, int32_t *size) {

mp_obj_t args[2] = {
fn,
MP_OBJ_NEW_QSTR(MP_QSTR_r),
MP_ROM_QSTR(MP_QSTR_r),
};

// Stat the file to get its size
Expand Down

0 comments on commit a41aa79

Please sign in to comment.