~mdw
/
catacomb-python
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f52568b
)
key.c (convfilter): Fix sense of error tests.
author
Mark Wooding
<mdw@distorted.org.uk>
Thu, 21 Nov 2019 18:23:56 +0000
(18:23 +0000)
committer
Mark Wooding
<mdw@distorted.org.uk>
Mon, 25 Nov 2019 17:31:22 +0000
(17:31 +0000)
So this never worked either.
key.c
patch
|
blob
|
blame
|
history
diff --git
a/key.c
b/key.c
index
5511699
..
dff59ec
100644
(file)
--- 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;