Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix byte-swapping problem for ticket #105

  • Loading branch information...
commit 8ff1adedbdde89ebed3e5ce1a01637814eb7464d 1 parent 249e8aa
Travis Oliphant authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  numpy/core/src/arrayobject.c
View
2  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);
Please sign in to comment.
Something went wrong with that request. Please try again.