summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--string.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/string.c b/string.c
index 78e2ba923f..953716a1ed 100644
--- a/string.c
+++ b/string.c
@@ -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');