summaryrefslogtreecommitdiffhomepage
path: root/src/string.c
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2021-06-08 17:19:31 +0900
committerYukihiro "Matz" Matsumoto <[email protected]>2021-06-08 17:19:31 +0900
commit3acc09ae61943242de8fcee5c09b062fe506c4ed (patch)
treea9700fe441c7cbb154108ae13051a9851dfa15d8 /src/string.c
parentd8ec544564a39703b55e316b49a6ee16d005c22c (diff)
downloadmruby-3acc09ae61943242de8fcee5c09b062fe506c4ed.tar.gz
mruby-3acc09ae61943242de8fcee5c09b062fe506c4ed.zip
string.c: make `mrb_str_len_{inum,dbl}()` static.
Diffstat (limited to 'src/string.c')
-rw-r--r--src/string.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/string.c b/src/string.c
index 2e15d267c..9af361f18 100644
--- a/src/string.c
+++ b/src/string.c
@@ -2199,7 +2199,7 @@ mrb_str_split_m(mrb_state *mrb, mrb_value str)
return result;
}
-mrb_value
+static mrb_value
mrb_str_len_to_inum(mrb_state *mrb, const char *str, size_t len, mrb_int base, int badcheck)
{
const char *p = str;
@@ -2440,7 +2440,7 @@ mrb_str_to_i(mrb_state *mrb, mrb_value self)
}
#ifndef MRB_NO_FLOAT
-double
+static double
mrb_str_len_to_dbl(mrb_state *mrb, const char *s, size_t len, mrb_bool badcheck)
{
char buf[DBL_DIG * 4 + 20];