1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

add undeclared variables

Why did they even exist?
This commit is contained in:
卜部昌平 2021-09-28 10:49:07 +09:00
parent ee89543e09
commit e42c8c160d
Notes: git 2021-10-05 14:18:48 +09:00

View file

@ -6897,6 +6897,7 @@ upcase_single(VALUE str)
while (s < send) {
unsigned int c = *(unsigned char*)s;
const rb_encoding *const enc = 0;
if (rb_enc_isascii(c, enc) && 'a' <= c && c <= 'z') {
*s = 'A' + (c - 'a');
@ -6987,6 +6988,7 @@ downcase_single(VALUE str)
while (s < send) {
unsigned int c = *(unsigned char*)s;
const rb_encoding *const enc = 0;
if (rb_enc_isascii(c, enc) && 'A' <= c && c <= 'Z') {
*s = 'a' + (c - 'A');