mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
symbol.c (SYMBOL_INLINE_P): fix the check condition
Symbol `:_` would break the assertion.
This commit is contained in:
+1
-1
@@ -66,7 +66,7 @@ sym_validate_len(mrb_state *mrb, size_t len)
|
||||
# define sym_inline_pack(name, len) 0
|
||||
# define sym_inline_unpack(sym, buf, lenp) NULL
|
||||
#else
|
||||
# define SYMBOL_INLINE_P(sym) ((sym) > (1<<20))
|
||||
# define SYMBOL_INLINE_P(sym) ((sym) >= (1<<20))
|
||||
|
||||
static const char pack_table[] = "_abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user