]> granicus.if.org Git - python/commit
doubletounicode(), longtounicode():
authorTim Peters <tim.peters@gmail.com>
Thu, 16 Feb 2006 01:08:01 +0000 (01:08 +0000)
committerTim Peters <tim.peters@gmail.com>
Thu, 16 Feb 2006 01:08:01 +0000 (01:08 +0000)
commit15231548d20b2a6fcac2830935ec076bed42448f
tree6831a1db2fb258a04b63c7089b086dd3f9f40c20
parentc7f6cf62473d48b2c814b135b0026e74c3dfc3c5
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.
Objects/unicodeobject.c