summaryrefslogtreecommitdiffstats
path: root/newlib/libc/stdlib/strtod.c
diff options
context:
space:
mode:
Diffstat (limited to 'newlib/libc/stdlib/strtod.c')
-rw-r--r--newlib/libc/stdlib/strtod.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/newlib/libc/stdlib/strtod.c b/newlib/libc/stdlib/strtod.c
index 77a17a135..a314d5b71 100644
--- a/newlib/libc/stdlib/strtod.c
+++ b/newlib/libc/stdlib/strtod.c
@@ -316,7 +316,7 @@ dig_done:
if (e1 > 0)
{
- if (i = e1 & 15)
+ if ((i = e1 & 15) != 0)
rv.d *= tens[i];
if (e1 &= ~15)
{
@@ -373,7 +373,7 @@ dig_done:
else if (e1 < 0)
{
e1 = -e1;
- if (i = e1 & 15)
+ if ((i = e1 & 15) != 0)
rv.d /= tens[i];
if (e1 &= ~15)
{