Skip to content

Commit

Permalink
Fix cast syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
javidcf committed Nov 25, 2022
1 parent 73b91f5 commit 40d9732
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Tk/tkImaging.c
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,7 @@ load_tkinter_funcs(void) {
PyErr_SetFromWindowsErr(0);
return 1;
}
if (!(hMods = static_cast<HMODULE*>(malloc(cbNeeded)))) {
if (!(hMods = (HMODULE*) malloc(cbNeeded))) {
PyErr_NoMemory();
return 1;
}
Expand Down

0 comments on commit 40d9732

Please sign in to comment.