diff options
author | Takashi Kokubun <[email protected]> | 2023-03-04 23:53:21 -0800 |
---|---|---|
committer | Takashi Kokubun <[email protected]> | 2023-03-05 23:28:59 -0800 |
commit | f0218303e050377da8f4b21a6a2a0bc4c3118cb6 (patch) | |
tree | 7ff8c91c92c1362b3c1be4af85c1790c21d3337f /string.c | |
parent | 31babc5ceaa8601075c344399a3bab59bb3dd1dd (diff) |
Optimize String#getbyte
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/7448
Diffstat (limited to 'string.c')
-rw-r--r-- | string.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |