diff options
author | mux <freelancer.c@gmail.com> | 2014-01-27 10:21:42 +0200 |
---|---|---|
committer | mux <freelancer.c@gmail.com> | 2014-01-27 10:21:42 +0200 |
commit | 00a4da93e8bb443b234b6a2cd7607d7abe2941e4 (patch) | |
tree | a8158753fa22545b12233b171a3b46c4e534ff9e /py/objfloat.c | |
parent | ddf1aa9223a2786c64df07ea686ecfe6ee83d1b2 (diff) | |
download | micropython-00a4da93e8bb443b234b6a2cd7607d7abe2941e4.tar.gz micropython-00a4da93e8bb443b234b6a2cd7607d7abe2941e4.zip |
Fix implicit double conversion warning
Diffstat (limited to 'py/objfloat.c')
-rw-r--r-- | py/objfloat.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/py/objfloat.c b/py/objfloat.c index 9f1f478cab..69fd65e199 100644 --- a/py/objfloat.c +++ b/py/objfloat.c @@ -21,7 +21,7 @@ mp_obj_t mp_obj_new_float(mp_float_t value); static void float_print(void (*print)(void *env, const char *fmt, ...), void *env, mp_obj_t o_in, mp_print_kind_t kind) { mp_obj_float_t *o = o_in; - print(env, "%.8g", o->value); + print(env, "%.8g", (double) o->value); } static mp_obj_t float_make_new(mp_obj_t type_in, uint n_args, uint n_kw, const mp_obj_t *args) { |