[Numpy-svn] [numpy/numpy] a646ac: BUG: Fix OverflowError in Python 3.x in swig inter...

GitHub noreply at github.com
Wed Apr 27 15:06:22 EDT 2016


  Branch: refs/heads/maintenance/1.11.x
  Home:   https://github.com/numpy/numpy
  Commit: a646ac1974c49cb05176781b290f4e4202428a4f
      https://github.com/numpy/numpy/commit/a646ac1974c49cb05176781b290f4e4202428a4f
  Author: Mathieu Lamarre <mathieu at vlam3d.com>
  Date:   2016-04-27 (Wed, 27 Apr 2016)

  Changed paths:
    M tools/swig/pyfragments.swg

  Log Message:
  -----------
  BUG: Fix OverflowError in Python 3.x in swig interface.

The error occurs When values above 0x7FFFFFF are passed to a function
accepting "unsigned int".

This a port of a fix in pyprimtype.swg from which several code snippets
where copy pasted into swig/pyfragments.swg.

Please see SWIG changes log (2015-12-23) for more details:

http://www.swig.org/Release/CHANGES.current

2015-12-23: ahnolds  [Python] Fixes for conversion of signed and
unsigned integer types ...


  Commit: 9426daea6d9ff85052c121381f6602a6e60181d3
      https://github.com/numpy/numpy/commit/9426daea6d9ff85052c121381f6602a6e60181d3
  Author: Charles Harris <charlesr.harris at gmail.com>
  Date:   2016-04-27 (Wed, 27 Apr 2016)

  Changed paths:
    M tools/swig/pyfragments.swg

  Log Message:
  -----------
  Merge pull request #7578 from charris/backport-7568

Backport 7568, Fix OverflowError in Python 3.x. in swig interface.


Compare: https://github.com/numpy/numpy/compare/ea667d7cc972...9426daea6d9f


More information about the Numpy-svn mailing list