From bfe5ccdcf939280dfbea28c2d94cb8928da33998 Mon Sep 17 00:00:00 2001 From: Mark Wooding Date: Thu, 21 Nov 2019 18:23:56 +0000 Subject: [PATCH] key.c (convfilter): Fix sense of error tests. So this never worked either. --- key.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/key.c b/key.c index 5511699..dff59ec 100644 --- a/key.c +++ b/key.c @@ -229,8 +229,8 @@ static int convfilter(PyObject *x, void *p) goto end; else if (n != 2) goto tyerr; - else if ((a = PySequence_GetItem(x, 0)) == 0 || convuint(a, &f->f) || - (b = PySequence_GetItem(x, 1)) == 0 || convuint(b, &f->m)) + else if ((a = PySequence_GetItem(x, 0)) == 0 || !convuint(a, &f->f) || + (b = PySequence_GetItem(x, 1)) == 0 || !convuint(b, &f->m)) goto end; } rc = 1; -- 2.11.0