[Numpy-svn] [numpy/numpy] d2ca91: BUG: Fix byteswapping for complex scalars

GitHub noreply at github.com
Sat Jan 5 10:30:24 EST 2013


  Branch: refs/heads/master
  Home:   https://github.com/numpy/numpy
  Commit: d2ca91791024f74dd4754fa9b811228abd1ce613
      https://github.com/numpy/numpy/commit/d2ca91791024f74dd4754fa9b811228abd1ce613
  Author: Sebastian Berg <sebastian at sipsolutions.net>
  Date:   2013-01-05 (Sat, 05 Jan 2013)

  Changed paths:
    M numpy/core/src/multiarray/arraytypes.c.src
    M numpy/core/tests/test_regression.py

  Log Message:
  -----------
  BUG: Fix byteswapping for complex scalars

During a cleanup, the fast paths were invalidated because SIZEOF_LONGDOUBLE
was not defined anymore and needs to be replaced with NPY_SIZEOF_LONGDOUBLE.
The other SIZEOF macros still existed however so only complex long double
broke because it switched to the already broken fast path.

This commit fixes the fast path, and replaces all SIZEOF_ macros within
arraytypes.c.src with their corresponding NPY_SIZEOF_ macros.


  Commit: 05dde0f733419cc7802cd9ea7d03050db120e429
      https://github.com/numpy/numpy/commit/05dde0f733419cc7802cd9ea7d03050db120e429
  Author: Charles Harris <charlesr.harris at gmail.com>
  Date:   2013-01-05 (Sat, 05 Jan 2013)

  Changed paths:
    M numpy/core/src/multiarray/arraytypes.c.src
    M numpy/core/tests/test_regression.py

  Log Message:
  -----------
  Merge pull request #2886 from seberg/complex256-byteswap

BUG: Fix byteswapping for complex scalars


Compare: https://github.com/numpy/numpy/compare/5701c87a8ffd...05dde0f73341


More information about the Numpy-svn mailing list