From 255a8b522022bfedf3d257fa4b3ff7259642cd01 Mon Sep 17 00:00:00 2001 From: Sandro Mani 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 fef102176..63220b767 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);