summaryrefslogtreecommitdiff
path: root/object.c
diff options
context:
space:
mode:
-rw-r--r--object.c3
1 files changed, 2 insertions, 1 deletions
@@ -14,6 +14,7 @@
#include "ruby.h"
#include "st.h"
#include <stdio.h>
#include <errno.h>
#include <ctype.h>
@@ -990,7 +991,7 @@ rb_cstr_to_dbl(p, badcheck)
d = strtod(p, &end);
if (p == end) {
if (badcheck) {
- bad:
rb_invalid_str(q, "Float()");
}
return d;