summaryrefslogtreecommitdiff
path: root/sprintf.c
diff options
context:
space:
mode:
Diffstat (limited to 'sprintf.c')
-rw-r--r--sprintf.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/sprintf.c b/sprintf.c
index fe53d6b27c..2355a65f9c 100644
--- a/sprintf.c
+++ b/sprintf.c
@@ -18,10 +18,6 @@
#define BIT_DIGITS(N) (((N)*146)/485 + 1) /* log2(10) =~ 146/485 */
-#if !defined(atof) && !defined(HAVE_STDLIB_H)
-double strtod();
-#endif
-
static void fmt_setup _((char*,int,int,int,int));
static char*
@@ -397,7 +393,7 @@ rb_f_sprintf(argc, argv)
bignum = 1;
break;
case T_STRING:
- val = rb_str2inum(val, 0);
+ val = rb_str_to_inum(val, 0, Qtrue);
goto bin_retry;
case T_BIGNUM:
bignum = 1;