diff options
| author | stijn | 2020-03-31 10:08:57 +0200 |
|---|---|---|
| committer | Damien George | 2020-04-18 22:36:06 +1000 |
| commit | b909e8b2dd007d8e7d61547768518b29bb4f833c (patch) | |
| tree | c913e1a2ea4c7998b3b80138fdcf71bab7f592e7 /extmod | |
| parent | 4677315a01cbf94f56d244a9064098f6f1a1fad8 (diff) | |
Revert "all: Fix implicit casts of float/double, and signed comparison."
This reverts commit a2110bd3fca59df8b16a2b5fe4645a4af30b06ed. There's
nothing inherently wrong with it, but upcoming commits will apply similar
fixes in a slightly different way.
Diffstat (limited to 'extmod')
| -rw-r--r-- | extmod/moductypes.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/extmod/moductypes.c b/extmod/moductypes.c index a7a905c66..eb9ca57e3 100644 --- a/extmod/moductypes.c +++ b/extmod/moductypes.c @@ -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); |
