1
0
mirror of https://github.com/janet-lang/janet synced 2025-10-28 06:07:43 +00:00

Fix funcdef flags when marshaling.

This commit is contained in:
Calvin Rose
2018-08-21 15:07:37 -04:00
parent 600292fad4
commit 634ec85b07
8 changed files with 19 additions and 25 deletions

View File

@@ -112,7 +112,7 @@ enum DstInstructionType dst_instructions[DOP_INSTRUCTION_COUNT] = {
/* Verify some bytecode */
int32_t dst_verify(DstFuncDef *def) {
int vargs = def->flags & DST_FUNCDEF_FLAG_VARARG;
int vargs = !!(def->flags & DST_FUNCDEF_FLAG_VARARG);
int32_t i;
int32_t maxslot = def->arity + vargs;
int32_t sc = def->slotcount;