PNG/JPEGDEC: Use MP_ROM_QSTR.

patch-img-open_file
Phil Howard 2025-01-23 14:08:24 +00:00
rodzic ef0d80b151
commit a41aa7954d
2 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -43,7 +43,7 @@ void *jpegdec_open_callback(const char *filename, int32_t *size) {
mp_obj_t args[2] = { mp_obj_t args[2] = {
fn, fn,
MP_OBJ_NEW_QSTR(MP_QSTR_r), MP_ROM_QSTR(MP_QSTR_r),
}; };
// Stat the file to get its size // Stat the file to get its size

Wyświetl plik

@ -53,7 +53,7 @@ void *pngdec_open_callback(const char *filename, int32_t *size) {
mp_obj_t args[2] = { mp_obj_t args[2] = {
fn, fn,
MP_OBJ_NEW_QSTR(MP_QSTR_r), MP_ROM_QSTR(MP_QSTR_r),
}; };
// Stat the file to get its size // Stat the file to get its size