Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
Depetrol committed Oct 11, 2024
1 parent 7fd00a2 commit 0031be2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/lib/pythontarget.c
Original file line number Diff line number Diff line change
Expand Up @@ -542,8 +542,8 @@ PyObject* convert_C_action_to_py(void* action) {
}

// Actions in Python always use token type
if ((( generic_action_instance_struct*)action)->token!=NULL)
((generic_action_capsule_struct*)cap)->value = (( generic_action_instance_struct*)action)->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 0031be2

Please sign in to comment.