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

remove UNREACHABLE

This commit is contained in:
NARUSE, Yui 2019-06-24 15:56:18 +09:00
parent 97b4fe2ff6
commit 4275f09015

View file

@ -302,8 +302,6 @@ mbc_to_code(const UChar* p, const UChar* end, OnigEncoding enc)
int low = ((p[3] & 0xF) << 12) | ((p[4] & 0x3f) << 6) | (p[5] & 0x3f);
return ((high & 0x03ff) << 10) + (low & 0x03ff) + 0x10000;
}
default:
UNREACHABLE;
}
#ifdef USE_INVALID_CODE_SCHEME
if (*p > 0xfd) {