diff --git a/node.c b/node.c index 1741a13..cede9be 100644 --- a/node.c +++ b/node.c @@ -139,11 +139,10 @@ r_force_number(NODE *n) *cpend = save; finish: if (errno == 0) { - if (ptr == cpend) { + n->flags |= NUMCUR; + if (ptr == cpend) + /* a purely numeric value with no trailing junk */ n->flags |= newflags; - n->flags |= NUMCUR; - } - /* else keep the leading numeric value without updating flags */ } else { errno = 0; /*