@@ -275,12 +275,12 @@ pgWindow_GetInfo(SDL_Window *window)
275
275
PyDict_SetItemString(dict, loc, tmp); \
276
276
Py_DECREF(tmp); \
277
277
}
278
- #define _LOAD_PROP_POINTER (name , loc ) \
279
- if (SDL_HasProperty(info, name)) { \
280
- tmp = PyLong_FromLongLong( \
281
- (long long )SDL_GetPointerProperty(info, name, 0)); \
282
- PyDict_SetItemString(dict, loc, tmp); \
283
- Py_DECREF(tmp); \
278
+ #define _LOAD_PROP_POINTER (name , loc ) \
279
+ if (SDL_HasProperty(info, name)) { \
280
+ tmp = PyLong_FromLongLong( \
281
+ (intptr_t )SDL_GetPointerProperty(info, name, 0)); \
282
+ PyDict_SetItemString(dict, loc, tmp); \
283
+ Py_DECREF(tmp); \
284
284
}
285
285
#define _LOAD_PROP (name , type , loc ) \
286
286
_LOAD_PROP_##type(SDL_PROP_WINDOW_##name##_##type, loc)
@@ -353,11 +353,11 @@ pgWindow_GetInfo(SDL_Window *window)
353
353
PyDict_SetItemString(dict, #prop, tmp); \
354
354
Py_DECREF(tmp); \
355
355
}
356
- #define _LOAD_PTR (from , prop ) \
357
- { \
358
- tmp = PyLong_FromLongLong((long long )(info.info.from.prop)); \
359
- PyDict_SetItemString(dict, #prop, tmp); \
360
- Py_DECREF(tmp); \
356
+ #define _LOAD_PTR (from , prop ) \
357
+ { \
358
+ tmp = PyLong_FromLongLong((intptr_t )(info.info.from.prop)); \
359
+ PyDict_SetItemString(dict, #prop, tmp); \
360
+ Py_DECREF(tmp); \
361
361
}
362
362
363
363
SDL_SysWMinfo info ;
0 commit comments