summaryrefslogtreecommitdiff
path: root/string.c
diff options
context:
space:
mode:
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 4a0df2aecb..88185cfb0b 100644
--- a/string.c
+++ b/string.c
@@ -6810,7 +6810,7 @@ rb_str_enumerate_chars(VALUE str, int wantarray)
if (wantarray)
ary = rb_ary_new_capa(str_strlen(str, enc)); /* str's enc*/
else
- RETURN_SIZED_ENUMERATOR(str, 0, 0, rb_str_each_char_size);
+ return SIZED_ENUMERATOR(str, 0, 0, rb_str_each_char_size);
}
switch (ENC_CODERANGE(str)) {