Small refactoring regarding symbols for clarity.

This commit is contained in:
Yukihiro "Matz" Matsumoto
2020-11-26 09:42:08 +09:00
parent 50b57f6ff1
commit a33f9d7b65
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -73,7 +73,7 @@ typedef struct symbol_name {
static void
sym_validate_len(mrb_state *mrb, size_t len)
{
if (len >= RITE_LV_NULL_MARK) {
if (len >= UINT16_MAX) {
mrb_raise(mrb, E_ARGUMENT_ERROR, "symbol length too long");
}
}