aboutsummaryrefslogtreecommitdiff
path: root/py/parsenum.c
diff options
context:
space:
mode:
authorstijn <stijn@ignitron.net>2020-03-31 10:08:57 +0200
committerDamien George <damien.p.george@gmail.com>2020-04-18 22:36:06 +1000
commitb909e8b2dd007d8e7d61547768518b29bb4f833c (patch)
treec913e1a2ea4c7998b3b80138fdcf71bab7f592e7 /py/parsenum.c
parent4677315a01cbf94f56d244a9064098f6f1a1fad8 (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 'py/parsenum.c')
-rw-r--r--py/parsenum.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/py/parsenum.c b/py/parsenum.c
index e665da7d8..234248c9d 100644
--- a/py/parsenum.c
+++ b/py/parsenum.c
@@ -220,7 +220,7 @@ mp_obj_t mp_parse_num_decimal(const char *str, size_t len, bool allow_imag, bool
if (str + 2 < top && (str[1] | 0x20) == 'n' && (str[2] | 0x20) == 'f') {
// inf
str += 3;
- dec_val = (mp_float_t)INFINITY;
+ dec_val = INFINITY;
if (str + 4 < top && (str[0] | 0x20) == 'i' && (str[1] | 0x20) == 'n' && (str[2] | 0x20) == 'i' && (str[3] | 0x20) == 't' && (str[4] | 0x20) == 'y') {
// infinity
str += 5;