Skip to content

Commit 3cf0ce3

Browse files
committed
SDL_strtol -> SDL_strtoull
1 parent 12424e8 commit 3cf0ce3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src_c/display.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -847,7 +847,7 @@ pg_set_mode(PyObject *self, PyObject *arg, PyObject *kwds)
847847
int w, h;
848848
PyObject *size = NULL;
849849
int vsync = SDL_FALSE;
850-
long long hwnd = 0;
850+
uint64_t hwnd = 0;
851851
/* display will get overwritten by ParseTupleAndKeywords only if display
852852
parameter is given. By default, put the new window on the same
853853
screen as the old one */
@@ -868,7 +868,7 @@ pg_set_mode(PyObject *self, PyObject *arg, PyObject *kwds)
868868
return NULL;
869869

870870
if (hwnd == 0 && winid_env != NULL) {
871-
hwnd = SDL_strtol(winid_env, NULL, 0);
871+
hwnd = SDL_strtoull(winid_env, NULL, 0);
872872
}
873873

874874
if (scale_env != NULL) {

0 commit comments

Comments
 (0)