commit | 15231548d20b2a6fcac2830935ec076bed42448f | [log] [tgz] |
---|---|---|
author | Tim Peters <tim.peters@gmail.com> | Thu Feb 16 01:08:01 2006 +0000 |
committer | Tim Peters <tim.peters@gmail.com> | Thu Feb 16 01:08:01 2006 +0000 |
tree | 6831a1db2fb258a04b63c7089b086dd3f9f40c20 | |
parent | c7f6cf62473d48b2c814b135b0026e74c3dfc3c5 [diff] |
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.