summaryrefslogtreecommitdiff
path: root/stmhal/input.c
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2014-05-25 22:27:57 +0100
committerDamien George <damien.p.george@gmail.com>2014-05-25 22:27:57 +0100
commit2617eebf2ff77e58f415162300747eaf1a5ab5d7 (patch)
tree7065586f59aa181b70b4721363ff7c7677f8e772 /stmhal/input.c
parentf88fc7bd23c7bab257a01857c6f4683ce491f78c (diff)
Change const byte* to const char* where sensible.
This removes need for some casts (at least, more than it adds need for new casts!).
Diffstat (limited to 'stmhal/input.c')
-rw-r--r--stmhal/input.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/stmhal/input.c b/stmhal/input.c
index 94f66b97f..7f3b17c6f 100644
--- a/stmhal/input.c
+++ b/stmhal/input.c
@@ -44,7 +44,7 @@ STATIC mp_obj_t mp_builtin_input(uint n_args, const mp_obj_t *args) {
if (line.len == 0 && ret == VCP_CHAR_CTRL_D) {
nlr_raise(mp_obj_new_exception(&mp_type_EOFError));
}
- mp_obj_t o = mp_obj_new_str((const byte*)line.buf, line.len, false);
+ mp_obj_t o = mp_obj_new_str(line.buf, line.len, false);
vstr_clear(&line);
return o;
}