Skip to content

Commit

Permalink
Remove unnecessary cast
Browse files Browse the repository at this point in the history
  • Loading branch information
fangerer committed Nov 23, 2022
1 parent 02ba59c commit a818bb7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/test_capsule.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ def DEFINE_Capsule_New(self, destructor="NULL"):
HPyErr_SetString(ctx, ctx->h_MemoryError, "out of memory");
return HPy_NULL;
}
res = HPyCapsule_New(ctx, ptr, CAPSULE_NAME, (HPyCapsule_Destructor *) %s);
res = HPyCapsule_New(ctx, ptr, CAPSULE_NAME, %s);
if (HPy_IsNull(res)) {
free(ptr);
}
Expand Down

0 comments on commit a818bb7

Please sign in to comment.