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

GitHub noreply@github....
Fri Sep 27 15:17:22 CDT 2013


  Branch: refs/heads/maintenance/1.8.x
  Home:   https://github.com/numpy/numpy
  Commit: cf13331897acb84d0a6a118c6ba4d700905d3e3e
      https://github.com/numpy/numpy/commit/cf13331897acb84d0a6a118c6ba4d700905d3e3e
  Author: Julian Taylor <jtaylor.debian@googlemail.com>
  Date:   2013-09-27 (Fri, 27 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: 062ae76f8dccba12402b36cfb7be7f830921dc80
      https://github.com/numpy/numpy/commit/062ae76f8dccba12402b36cfb7be7f830921dc80
  Author: Charles Harris <charlesr.harris@gmail.com>
  Date:   2013-09-27 (Fri, 27 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 #3811 from charris/backport-1.8-3802

Backport 1.8 3802


Compare: https://github.com/numpy/numpy/compare/e20a2bbfad2c...062ae76f8dcc


More information about the Numpy-svn mailing list