aboutsummaryrefslogtreecommitdiffstats
path: root/mpfr.c
diff options
context:
space:
mode:
Diffstat (limited to 'mpfr.c')
-rw-r--r--mpfr.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/mpfr.c b/mpfr.c
index 673553df..5bbfe001 100644
--- a/mpfr.c
+++ b/mpfr.c
@@ -349,7 +349,8 @@ mpg_force_number(NODE *n)
if (force_mpnum(n, (do_non_decimal_data && ! do_traditional), true)) {
if ((n->flags & MAYBE_NUM) != 0) {
- n->flags &= ~(MAYBE_NUM|STRING);
+ /* leave MAYBE_NUM set to indicate a strnum */
+ n->flags &= ~STRING;
n->flags |= NUMBER;
}
} else