Skip to content

Commit

Permalink
Merge pull request #490 from lf-lang/fix-concurrency
Browse files Browse the repository at this point in the history
Fix Unintended Action Override
  • Loading branch information
Depetrol authored Oct 17, 2024
2 parents 184567d + 0031be2 commit c4764fb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion python/lib/pythontarget.c
Original file line number Diff line number Diff line change
Expand Up @@ -542,7 +542,8 @@ PyObject* convert_C_action_to_py(void* action) {
}

// Actions in Python always use token type
((generic_action_capsule_struct*)cap)->value = trigger->tmplt.token->value;
if (((generic_action_instance_struct*)action)->token != NULL)
((generic_action_capsule_struct*)cap)->value = ((generic_action_instance_struct*)action)->token->value;

return cap;
}
Expand Down

0 comments on commit c4764fb

Please sign in to comment.