[Numpy-discussion] Patch for scalartypes.inc.src
Christopher Stawarz
chris at pseudogreen.org
Wed Feb 1 14:40:13 EST 2006
I ran into a couple bugs in scalartypes.inc.src:
- The switch statement in PyArray_ScalarAsCtype was missing some
breaks.
- When SIZEOF_LONGDOUBLE == SIZEOF_DOUBLE, PREC_REPR and PREC_STR
should both be 17, not 15. (This matches what's done in
floatobject.c for Python's
float.)
The attached patch (against SVN revision 2045) fixes both problems.
Cheers,
Chris
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: scalartypes_patch.txt
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20060201/b72b2b3d/attachment.txt>
More information about the NumPy-Discussion
mailing list