|
From: Christopher S. <ch...@ps...> - 2006-02-01 22:39:37
|
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
|