Permalink
Browse files

Fix byte-swapping problem for ticket #105

  • Loading branch information...
1 parent 249e8aa commit 8ff1adedbdde89ebed3e5ce1a01637814eb7464d @teoliphant teoliphant committed May 10, 2006
Showing with 1 addition and 1 deletion.
  1. +1 −1 numpy/core/src/arrayobject.c
@@ -7389,7 +7389,7 @@ iter_subscript_Bool(PyArrayIterObject *self, PyArrayObject *ind)
copyswap = self->ao->descr->f->copyswap;
/* Loop over Boolean array */
- swap = !(PyArray_ISNOTSWAPPED(self->ao));
+ swap = (PyArray_ISNOTSWAPPED(self->ao) != PyArray_ISNOTSWAPPED(r));
while(index--) {
if (*((Bool *)dptr) != 0) {
copyswap(optr, self->dataptr, swap, self->ao);

0 comments on commit 8ff1ade

Please sign in to comment.