mirror of
https://github.com/openmv/openmv.git
synced 2025-11-04 14:49:50 +08:00
Fix warning
This commit is contained in:
parent
f23336e3ae
commit
2d833b2ab5
@ -49,7 +49,7 @@ mp_obj_t py_file_read(py_file_obj_t *file, mp_obj_t n_obj)
|
|||||||
UINT n_out;
|
UINT n_out;
|
||||||
UINT n = mp_obj_get_int(n_obj);
|
UINT n = mp_obj_get_int(n_obj);
|
||||||
|
|
||||||
byte *buf = m_new(byte, n);
|
char *buf = m_new(char, n);
|
||||||
f_read(&file->fp, buf, n, &n_out);
|
f_read(&file->fp, buf, n, &n_out);
|
||||||
return mp_obj_new_str(buf, n_out, false);
|
return mp_obj_new_str(buf, n_out, false);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user