Revert "all: Fix implicit casts of float/double, and signed comparison."
This reverts commit a2110bd3fc. There's
nothing inherently wrong with it, but upcoming commits will apply similar
fixes in a slightly different way.
This commit is contained in:
@@ -360,9 +360,9 @@ STATIC mp_obj_t get_aligned(uint val_type, void *p, mp_int_t index) {
|
||||
return mp_obj_new_int_from_ll(((int64_t *)p)[index]);
|
||||
#if MICROPY_PY_BUILTINS_FLOAT
|
||||
case FLOAT32:
|
||||
return mp_obj_new_float((mp_float_t)((float *)p)[index]);
|
||||
return mp_obj_new_float(((float *)p)[index]);
|
||||
case FLOAT64:
|
||||
return mp_obj_new_float((mp_float_t)((double *)p)[index]);
|
||||
return mp_obj_new_float(((double *)p)[index]);
|
||||
#endif
|
||||
default:
|
||||
assert(0);
|
||||
|
||||
Reference in New Issue
Block a user