Fix crash in ImageTk.PhotoImage on win-amd64

This commit is contained in:
Christoph Gohlke 2015-11-23 16:42:40 -08:00
parent ea2982f284
commit 8fd37070af

View File

@ -60,7 +60,11 @@ ImagingFind(const char* name)
Py_ssize_t id; Py_ssize_t id;
/* FIXME: use CObject instead? */ /* FIXME: use CObject instead? */
#if defined(_MSC_VER) && defined(_WIN64)
id = _atoi64(name);
#else
id = atol(name); id = atol(name);
#endif
if (!id) if (!id)
return NULL; return NULL;