summaryrefslogtreecommitdiffstatshomepage
path: root/stm/file.c
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2014-02-08 18:17:23 +0000
committerDamien George <damien.p.george@gmail.com>2014-02-08 18:17:23 +0000
commit698ec21e46564ff0c2c71bf11d7eb4ef349c88d9 (patch)
tree3d0eac21ec784f970f9f5586dfbd28c66f0774e5 /stm/file.c
parent23177088d255bec6c0bf93470aeac77194aa8258 (diff)
downloadmicropython-698ec21e46564ff0c2c71bf11d7eb4ef349c88d9.tar.gz
micropython-698ec21e46564ff0c2c71bf11d7eb4ef349c88d9.zip
Make mp_obj_str_get_data return char* instead of byte*.
Can't decide which is better for string type, char or byte pointer. Changing to char removes a few casts. Really need to do proper unicode.
Diffstat (limited to 'stm/file.c')
-rw-r--r--stm/file.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/stm/file.c b/stm/file.c
index 84f7251fec..36658e7a69 100644
--- a/stm/file.c
+++ b/stm/file.c
@@ -29,7 +29,7 @@ mp_obj_t file_obj_read(mp_obj_t self_in, mp_obj_t arg) {
mp_obj_t file_obj_write(mp_obj_t self_in, mp_obj_t arg) {
pyb_file_obj_t *self = self_in;
uint l;
- const byte *s = mp_obj_str_get_data(arg, &l);
+ const char *s = mp_obj_str_get_data(arg, &l);
UINT n_out;
FRESULT res = f_write(&self->fp, s, l, &n_out);
if (res != FR_OK) {