From 3aa6709272d6c74300b70d8371b135289a8d8c9d Mon Sep 17 00:00:00 2001 From: "Arnold D. Robbins" Date: Sat, 9 Jan 2021 22:24:07 +0200 Subject: Fix conversion of 018 to decimal. Add a test. --- mpfr.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'mpfr.c') diff --git a/mpfr.c b/mpfr.c index cf53bbdd..cabc3910 100644 --- a/mpfr.c +++ b/mpfr.c @@ -3,7 +3,7 @@ */ /* - * Copyright (C) 2012, 2013, 2015, 2017, 2018, 2019, + * Copyright (C) 2012, 2013, 2015, 2017, 2018, 2019, 2021 * the Free Software Foundation, Inc. * * This file is part of GAWK, the GNU implementation of the @@ -176,7 +176,7 @@ mpg_strtoui(mpz_ptr zi, char *str, size_t len, char **end, int base) case '8': case '9': if (base == 8) - goto done; + base = 10; break; case 'a': case 'b': -- cgit v1.2.3