Unverified Commit cc94c8bf authored by Yukihiro "Matz" Matsumoto's avatar Yukihiro "Matz" Matsumoto Committed by GitHub

Merge pull request #4276 from shuujii/use-assert-for-checking-sym-in-sym_inline_unpack

Use `mrb_assert()` for checking `sym` in `sym_inline_unpack()`
parents 702a868b 921af692
...@@ -73,8 +73,8 @@ sym_inline_unpack(mrb_sym sym, char *buf) ...@@ -73,8 +73,8 @@ sym_inline_unpack(mrb_sym sym, char *buf)
{ {
int i; int i;
if (sym == 0) return NULL; mrb_assert(sym&1);
if ((sym&1) == 0) return NULL; /* need to be inline sym */
if (sym&2) { /* all lower case (5bits/char) */ if (sym&2) { /* all lower case (5bits/char) */
for (i=0; i<6; i++) { for (i=0; i<6; i++) {
uint32_t bits; uint32_t bits;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment