mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
Small refactoring regarding symbols for clarity.
This commit is contained in:
+1
-1
@@ -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");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user