mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-11-11 04:07:21 +03:00
Merge pull request #1553 from cgohlke/patch-2
Fix crash in ImageTk.PhotoImage on win-amd64
This commit is contained in:
commit
f32a185f06
|
@ -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;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user