mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
Clear existing aspec bits before setting new ones in mrb_proc_set_cfunc_aspec
This commit is contained in:
@@ -147,6 +147,7 @@ mrb_proc_decompress_caspec(uint32_t flags)
|
||||
static inline void
|
||||
mrb_proc_set_cfunc_aspec(struct RProc *p, mrb_aspec aspec)
|
||||
{
|
||||
p->flags &= ~(MRB_PROC_NOARG | MRB_PROC_CASPEC_MASK);
|
||||
if (aspec == 0) {
|
||||
p->flags |= MRB_PROC_NOARG;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user