diff --git a/python/lib/pythontarget.c b/python/lib/pythontarget.c index 5981ae7a4..8e41f40f9 100644 --- a/python/lib/pythontarget.c +++ b/python/lib/pythontarget.c @@ -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; }