mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
Use mrb_assert() for checking sym in sym_inline_unpack()
This commit is contained in:
+3
-3
@@ -73,9 +73,9 @@ sym_inline_unpack(mrb_sym sym, char *buf)
|
||||
{
|
||||
int i;
|
||||
|
||||
if (sym == 0) return NULL;
|
||||
if ((sym&1) == 0) return NULL; /* need to be inline sym */
|
||||
if (sym&2) { /* all lower case (5bits/char) */
|
||||
mrb_assert(sym&1);
|
||||
|
||||
if (sym&2) { /* all lower case (5bits/char) */
|
||||
for (i=0; i<6; i++) {
|
||||
uint32_t bits;
|
||||
char c;
|
||||
|
||||
Reference in New Issue
Block a user