Fix warning

This commit is contained in:
iabdalkader 2014-06-25 19:51:09 +02:00
parent f23336e3ae
commit 2d833b2ab5

View File

@ -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);
} }