From f0218303e050377da8f4b21a6a2a0bc4c3118cb6 Mon Sep 17 00:00:00 2001 From: Takashi Kokubun Date: Sat, 4 Mar 2023 23:53:21 -0800 Subject: Optimize String#getbyte --- string.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'string.c') 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); -- cgit v1.2.1