diff options
author | Arnold D. Robbins <arnold@skeeve.com> | 2021-01-09 22:24:07 +0200 |
---|---|---|
committer | Arnold D. Robbins <arnold@skeeve.com> | 2021-01-09 22:24:07 +0200 |
commit | 3aa6709272d6c74300b70d8371b135289a8d8c9d (patch) | |
tree | a1c901c1859db9c7933994f0a37b56f33a6d684e /mpfr.c | |
parent | 5b3ac78d72621697e717765d2d634d7fc271f3c9 (diff) | |
download | egawk-3aa6709272d6c74300b70d8371b135289a8d8c9d.tar.gz egawk-3aa6709272d6c74300b70d8371b135289a8d8c9d.tar.bz2 egawk-3aa6709272d6c74300b70d8371b135289a8d8c9d.zip |
Fix conversion of 018 to decimal. Add a test.
Diffstat (limited to 'mpfr.c')
-rw-r--r-- | mpfr.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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': |