diff options
Diffstat (limited to 'encoding.c')
-rw-r--r-- | encoding.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/encoding.c b/encoding.c index 61dc93836e..288395b1dd 100644 --- a/encoding.c +++ b/encoding.c @@ -549,6 +549,7 @@ rb_enc_get_index(VALUE obj) VALUE tmp; switch (BUILTIN_TYPE(obj)) { + default: case T_STRING: case T_REGEXP: i = ENCODING_GET_INLINED(obj); |