Skip to content

Commit

Permalink
Clean 'misleading indentation' warning
Browse files Browse the repository at this point in the history
The build of strtod32.c issues the following warning:

    strtod32.c:906:13: warning: this ‘for’ clause does not guard... [-Wmisleading-indentation]

which prevents the use of '-Wall -Werror' in CFLAGS.  This patch fix the
indentation warning.

Signed-off-by: Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
  • Loading branch information
inconstante authored and tuliom committed Apr 13, 2018
1 parent 25c397a commit cf7652a
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions strtod32.c
Expand Up @@ -903,10 +903,13 @@ FUNCTION_L_INTERNAL (const STRING_TYPE * nptr, STRING_TYPE ** endptr,
{
int inner = 0;
if (thousands != NULL && *startp == *thousands
&& ({ for (inner = 1; thousands[inner] != '\0'; ++inner)
if (thousands[inner] != startp[inner])
break;
thousands[inner] == '\0'; }))
&& ({
for (inner = 1; thousands[inner] != '\0'; ++inner)
if (thousands[inner] != startp[inner])
break;
thousands[inner] == '\0';
})
)
startp += inner;
else
startp += decimal_len;
Expand Down

0 comments on commit cf7652a

Please sign in to comment.