python-pillow/255a8b522022bfedf3d257fa4b3ff7259642cd01.patch

23 lines
660 B
Diff
Raw Normal View History

2016-01-04 14:11:12 +00:00
From 255a8b522022bfedf3d257fa4b3ff7259642cd01 Mon Sep 17 00:00:00 2001
From: Sandro Mani <manisandro@gmail.com>
Date: Mon, 4 Jan 2016 13:44:24 +0100
Subject: [PATCH] Fix incorrect conditional
---
encode.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/encode.c b/encode.c
index fef1021..63220b7 100644
--- a/encode.c
+++ b/encode.c
@@ -54,7 +54,7 @@ PyImaging_EncoderNew(int contextsize)
ImagingEncoderObject *encoder;
void *context;
- if(!PyType_Ready(&ImagingEncoderType) < 0)
+ if(PyType_Ready(&ImagingEncoderType) < 0)
return NULL;
encoder = PyObject_New(ImagingEncoderObject, &ImagingEncoderType);