mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-25 01:16:16 +03:00
Compare long long with long long
Co-authored-by: Ondrej Baranovič <ondreko.tiba@gmail.com>
This commit is contained in:
parent
7044038e70
commit
fd9bea271a
|
@ -880,7 +880,7 @@ font_render(FontObject *self, PyObject *args) {
|
|||
width += stroke_width * 2 + ceil(x_start);
|
||||
height += stroke_width * 2 + ceil(y_start);
|
||||
if (max_image_pixels != Py_None) {
|
||||
if ((long long)width * height > PyLong_AsLong(max_image_pixels) * 2) {
|
||||
if ((long long)width * height > PyLong_AsLongLong(max_image_pixels) * 2) {
|
||||
PyMem_Del(glyph_info);
|
||||
return Py_BuildValue("O(ii)(ii)", Py_None, width, height, 0, 0);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user