diff --git a/node.c b/node.c index fcd2bf3..b879e64 100644 --- a/node.c +++ b/node.c @@ -140,7 +140,7 @@ r_force_number(NODE *n) *cpend = save; } - if (errno == 0) { + if (errno == 0 || errno == ERANGE){ if (ptr == cpend) goto goodnum; /* else keep the leading numeric value without updating flags */