aboutsummaryrefslogtreecommitdiffstats
path: root/node.c
diff options
context:
space:
mode:
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);