Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/_imaging.c
Original file line number Diff line number Diff line change
Expand Up @@ -594,7 +594,7 @@ getink(PyObject *color, Imaging im, char *ink) {
Python long (not int) that raises an overflow error when trying
to return it into a 32 bit C long
*/
PY_LONG_LONG r = 0;
long long r = 0;
FLOAT32 ftmp;
INT32 itmp;

Expand Down
2 changes: 1 addition & 1 deletion src/_imagingft.c
Original file line number Diff line number Diff line change
Expand Up @@ -840,7 +840,7 @@ font_render_impl(FontObject *self, PyObject *args) {
int color = 0; /* is FT_LOAD_COLOR enabled? */
float stroke_width = 0;
int stroke_filled = 0;
PY_LONG_LONG foreground_ink_long = 0;
long long foreground_ink_long = 0;
unsigned int foreground_ink;
const char *mode_name = NULL;
const char *dir = NULL;
Expand Down
2 changes: 1 addition & 1 deletion src/decode.c
Original file line number Diff line number Diff line change
Expand Up @@ -934,7 +934,7 @@ PyImaging_Jpeg2KDecoderNew(PyObject *self, PyObject *args) {
int reduce = 0;
int layers = 0;
int fd = -1;
PY_LONG_LONG length = -1;
long long length = -1;

if (!PyArg_ParseTuple(
args, "ss|iiiL", &mode, &format, &reduce, &layers, &fd, &length
Expand Down
3 changes: 2 additions & 1 deletion src/path.c
Original file line number Diff line number Diff line change
Expand Up @@ -614,9 +614,10 @@ path_subscript(PyPathObject *self, PyObject *item) {
int len = self->count;
Py_ssize_t start, stop, step, slicelength;

if (PySlice_GetIndicesEx(item, len, &start, &stop, &step, &slicelength) < 0) {
if (PySlice_Unpack(item, &start, &stop, &step) < 0) {
return NULL;
}
slicelength = PySlice_AdjustIndices(len, &start, &stop, step);

if (slicelength <= 0) {
double *xy = alloc_array(0);
Expand Down
Loading