diff options
Diffstat (limited to 'mpfr.c')
-rw-r--r-- | mpfr.c | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -349,6 +349,15 @@ mpg_force_number(NODE *n) { char *cp, *cpend; + if (n->type == Node_elem_new) { + n->type = Node_val; + n->flags &= ~STRING; + n->stptr[0] = '0'; // STRCUR is still set + n->stlen = 1; + + return n; + } + if ((n->flags & NUMCUR) != 0) return n; n->flags |= NUMCUR; |