[Numpy-svn] [numpy/numpy] 46072b: BUG: do a boolean check on casting bool to other t...

GitHub noreply@github....
Thu Sep 26 21:38:38 CDT 2013


  Branch: refs/heads/master
  Home:   https://github.com/numpy/numpy
  Commit: 46072bd5931d76045690cb51413c050a910ad3aa
      https://github.com/numpy/numpy/commit/46072bd5931d76045690cb51413c050a910ad3aa
  Author: Julian Taylor <jtaylor.debian@googlemail.com>
  Date:   2013-09-26 (Thu, 26 Sep 2013)

  Changed paths:
    M numpy/core/src/multiarray/lowlevel_strided_loops.c.src
    M numpy/core/tests/test_multiarray.py

  Log Message:
  -----------
  BUG: do a boolean check on casting bool to other types

avoids some issues of booleans coming from external buffers that may not
only contain 0 or 1.
closes #3801.


  Commit: 21d99a683464b311ff60972293382a292dcbbe5d
      https://github.com/numpy/numpy/commit/21d99a683464b311ff60972293382a292dcbbe5d
  Author: Charles Harris <charlesr.harris@gmail.com>
  Date:   2013-09-26 (Thu, 26 Sep 2013)

  Changed paths:
    M numpy/core/src/multiarray/lowlevel_strided_loops.c.src
    M numpy/core/tests/test_multiarray.py

  Log Message:
  -----------
  Merge pull request #3802 from juliantaylor/bool-check

BUG: do a boolean check on casting bool to other types


Compare: https://github.com/numpy/numpy/compare/856b544ac009...21d99a683464


More information about the Numpy-svn mailing list