From 94b78bb204a9606254c1088a4bb6fa00859a9d82 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Mon, 7 Sep 1998 13:47:26 +0000 Subject: Update. * argp/argp-help.c: Likewise. * argp/argp-parse.c: Likewise. --- stdlib/strtol.c | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'stdlib') diff --git a/stdlib/strtol.c b/stdlib/strtol.c index 2a750d7dc2..93df6ab661 100644 --- a/stdlib/strtol.c +++ b/stdlib/strtol.c @@ -404,12 +404,14 @@ noconv: hexadecimal digits. This is no error case. We return 0 and ENDPTR points to the `x`. */ if (endptr != NULL) - if (save - nptr >= 2 && TOUPPER (save[-1]) == L_('X') - && save[-2] == L_('0')) - *endptr = (STRING_TYPE *) &save[-1]; - else - /* There was no number to convert. */ - *endptr = (STRING_TYPE *) nptr; + { + if (save - nptr >= 2 && TOUPPER (save[-1]) == L_('X') + && save[-2] == L_('0')) + *endptr = (STRING_TYPE *) &save[-1]; + else + /* There was no number to convert. */ + *endptr = (STRING_TYPE *) nptr; + } return 0L; } -- cgit 1.4.1