aboutsummaryrefslogtreecommitdiffstats
path: root/node.c
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2020-07-08 18:36:19 +0300
committerArnold D. Robbins <arnold@skeeve.com>2020-07-08 18:36:19 +0300
commitf34e5c8c66202a4bf58a86799d4efd438ffa1284 (patch)
tree37cab41237e25912cd3de1ff9e78f15f6fb756fd /node.c
parenteead4c7f6e29955a1a9578904a95c6291e8057b5 (diff)
downloadegawk-f34e5c8c66202a4bf58a86799d4efd438ffa1284.tar.gz
egawk-f34e5c8c66202a4bf58a86799d4efd438ffa1284.tar.bz2
egawk-f34e5c8c66202a4bf58a86799d4efd438ffa1284.zip
Fix typedregex2 and typedregex3 tesets for MPFR.
Diffstat (limited to 'node.c')
-rw-r--r--node.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/node.c b/node.c
index 2db6a1ef..ecb9ad0e 100644
--- a/node.c
+++ b/node.c
@@ -479,6 +479,11 @@ make_typed_regex(const char *re, size_t len)
n2 = make_string(re, len);
n2->typed_re = n;
+#if HAVE_MPFR
+ if (do_mpfr)
+ mpg_zero(n2);
+ else
+#endif
n2->numbr = 0;
n2->flags |= NUMCUR|STRCUR|REGEX;
n2->flags &= ~(STRING|NUMBER);