Message78147
Cause of segfault was doing Py_XDECREF on a pointer that hadn't been
initialised to NULL.
Here's a fixed patch.
I still get the instant result:
>>> round(2, -2**31+1)
2
which is a little odd. It's the correct result, but I can't see how
it gets there: under the current algorithm, there should be a
10**(2**31-1) happening somewhere, and that would take a *lot* of time
and memory. Will investigate. |
|
Date |
User |
Action |
Args |
2008-12-21 14:55:54 | mark.dickinson | set | recipients:
+ mark.dickinson, loewis, rhettinger, giampaolo.rodola, ajaksu2, jyasskin, dingo |
2008-12-21 14:55:53 | mark.dickinson | set | messageid: <1229871353.97.0.0822058837957.issue4707@psf.upfronthosting.co.za> |
2008-12-21 14:55:53 | mark.dickinson | link | issue4707 messages |
2008-12-21 14:55:53 | mark.dickinson | create | |
|