summaryrefslogtreecommitdiffstatshomepage
path: root/unix/main.c
diff options
context:
space:
mode:
authorDamien <damien.p.george@gmail.com>2013-11-03 14:26:21 +0000
committerDamien <damien.p.george@gmail.com>2013-11-03 14:26:21 +0000
commit014e19fc4d36bd0ce1be31e4fea3e0681b32371a (patch)
tree2d7fd5bf5bb4a12372d285fc8661e4512e2da31c /unix/main.c
parent9b9e996df616e8ba3b175b87783d3a34bc357c6d (diff)
downloadmicropython-014e19fc4d36bd0ce1be31e4fea3e0681b32371a.tar.gz
micropython-014e19fc4d36bd0ce1be31e4fea3e0681b32371a.zip
Fix compiler warnings in unix/main.c.
Diffstat (limited to 'unix/main.c')
-rw-r--r--unix/main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/unix/main.c b/unix/main.c
index 778284bdd7..1c0f78f8b9 100644
--- a/unix/main.c
+++ b/unix/main.c
@@ -138,7 +138,7 @@ void test_print(py_obj_t o_in) {
py_obj_t test_get(py_obj_t o_in) {
py_obj_t d1;
py_obj_t d2;
- py_user_get_data(o_in, &d1, &d2);
+ py_user_get_data(o_in, (machine_uint_t*)&d1, (machine_uint_t*)&d2);
return d1;
}
@@ -161,7 +161,7 @@ int main(int argc, char **argv) {
qstr_init();
rt_init();
- rt_store_name(qstr_from_str_static("test"), py_obj_new_user(&test_obj_info, py_obj_new_int(42), 0));
+ rt_store_name(qstr_from_str_static("test"), py_obj_new_user(&test_obj_info, (machine_uint_t)py_obj_new_int(42), 0));
if (argc == 1) {
do_repl();