aboutsummaryrefslogtreecommitdiffstats
path: root/mpfr.c
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2015-08-25 20:32:36 +0300
committerArnold D. Robbins <arnold@skeeve.com>2015-08-25 20:32:36 +0300
commit9a1d9bf768645496c451410f137e97ef192fbe7c (patch)
treeb1b267af71c1a42c295ddef6265675dd94bb1a28 /mpfr.c
parentc4e1e18fb3feaeab891c4dddf513302f4288f35b (diff)
parent0d974ba125c1e8df68fecc2f579bb067d056cc3f (diff)
downloadegawk-9a1d9bf768645496c451410f137e97ef192fbe7c.tar.gz
egawk-9a1d9bf768645496c451410f137e97ef192fbe7c.tar.bz2
egawk-9a1d9bf768645496c451410f137e97ef192fbe7c.zip
Merge branch 'master' into feature/cmake
Diffstat (limited to 'mpfr.c')
-rw-r--r--mpfr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mpfr.c b/mpfr.c
index 080ed7fa..b7526cfb 100644
--- a/mpfr.c
+++ b/mpfr.c
@@ -347,7 +347,7 @@ mpg_force_number(NODE *n)
return n;
if ((n->flags & MAYBE_NUM) != 0) {
- n->flags &= ~MAYBE_NUM;
+ n->flags &= ~(MAYBE_NUM|STRING);
newflags = NUMBER;
}
@@ -525,7 +525,7 @@ set_PREC()
if ((val->flags & MAYBE_NUM) != 0)
force_number(val);
- if ((val->flags & (STRING|NUMBER)) == STRING) {
+ if ((val->flags & STRCUR) != 0) {
int i, j;
/* emulate IEEE-754 binary format */