aboutsummaryrefslogtreecommitdiffstats
path: root/mpfr.c
diff options
context:
space:
mode:
authorAndrew J. Schorr <aschorr@telemetry-investments.com>2016-07-06 22:29:58 -0400
committerAndrew J. Schorr <aschorr@telemetry-investments.com>2016-07-06 22:29:58 -0400
commiteb261daff5e9a96f294cd806d1fd3e68f06fdbaa (patch)
tree5f4d05861ac492c52a9f6a0781c69e90be73b60c /mpfr.c
parentce342a04922797cb53557178c54d32c4efafda16 (diff)
downloadegawk-eb261daff5e9a96f294cd806d1fd3e68f06fdbaa.tar.gz
egawk-eb261daff5e9a96f294cd806d1fd3e68f06fdbaa.tar.bz2
egawk-eb261daff5e9a96f294cd806d1fd3e68f06fdbaa.zip
Modify MAYBE_NUM usage and typeof function to return "strnum" only for actual numeric strings.
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 cf7a7c21..b239e4b6 100644
--- a/mpfr.c
+++ b/mpfr.c
@@ -342,7 +342,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