Fix cast syntax

This commit is contained in:
Javier Dehesa 2022-11-25 15:57:07 +00:00 committed by GitHub
parent 73b91f58d0
commit 40d9732a40
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;
}