Commit 2001bba
committed
doubletounicode(), longtounicode():
Py_SAFE_DOWNCAST can evaluate its first argument multiple
times in a debug build. This caused two distinct assert-
failures in test_unicode run under a debug build. Rewrote
the code in trivial ways so that multiple evaluation of the
first argument doesn't hurt.1 parent 9ace2be commit 2001bba
1 file changed
Lines changed: 8 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6601 | 6601 | | |
6602 | 6602 | | |
6603 | 6603 | | |
| 6604 | + | |
| 6605 | + | |
6604 | 6606 | | |
6605 | | - | |
6606 | | - | |
| 6607 | + | |
| 6608 | + | |
6607 | 6609 | | |
6608 | 6610 | | |
6609 | 6611 | | |
6610 | 6612 | | |
6611 | 6613 | | |
| 6614 | + | |
| 6615 | + | |
6612 | 6616 | | |
6613 | | - | |
6614 | | - | |
| 6617 | + | |
| 6618 | + | |
6615 | 6619 | | |
6616 | 6620 | | |
6617 | 6621 | | |
| |||
0 commit comments