aboutsummaryrefslogtreecommitdiffstats
path: root/string.c
diff options
context:
space:
mode:
authorTakashi Kokubun <takashikkbn@gmail.com>2023-03-04 23:53:21 -0800
committerTakashi Kokubun <takashikkbn@gmail.com>2023-03-05 23:28:59 -0800
commitf0218303e050377da8f4b21a6a2a0bc4c3118cb6 (patch)
tree7ff8c91c92c1362b3c1be4af85c1790c21d3337f /string.c
parent31babc5ceaa8601075c344399a3bab59bb3dd1dd (diff)
downloadruby-f0218303e050377da8f4b21a6a2a0bc4c3118cb6.tar.gz
Optimize String#getbyte
Diffstat (limited to 'string.c')
-rw-r--r--string.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/string.c b/string.c
index f556cdf180..3c653e44c5 100644
--- a/string.c
+++ b/string.c
@@ -6072,7 +6072,7 @@ rb_str_chr(VALUE str)
*
* Related: String#setbyte.
*/
-static VALUE
+VALUE
rb_str_getbyte(VALUE str, VALUE index)
{
long pos = NUM2LONG(index);