Merge pull request #1638 from manisandro/conditional

Fix incorrect conditional in encode.c
This commit is contained in:
wiredfool 2016-01-04 05:49:39 -08:00
commit 2819e42cd7

View File

@ -54,7 +54,7 @@ PyImaging_EncoderNew(int contextsize)
ImagingEncoderObject *encoder; ImagingEncoderObject *encoder;
void *context; void *context;
if(!PyType_Ready(&ImagingEncoderType) < 0) if(PyType_Ready(&ImagingEncoderType) < 0)
return NULL; return NULL;
encoder = PyObject_New(ImagingEncoderObject, &ImagingEncoderType); encoder = PyObject_New(ImagingEncoderObject, &ImagingEncoderType);