From f34e5c8c66202a4bf58a86799d4efd438ffa1284 Mon Sep 17 00:00:00 2001 From: "Arnold D. Robbins" Date: Wed, 8 Jul 2020 18:36:19 +0300 Subject: Fix typedregex2 and typedregex3 tesets for MPFR. --- node.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'node.c') 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); -- cgit v1.2.3