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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user