[Python-checkins] r75045 - python/branches/py3k/Objects/longobject.c
mark.dickinson
python-checkins at python.org
Thu Sep 24 20:31:17 CEST 2009
Author: mark.dickinson
Date: Thu Sep 24 20:31:17 2009
New Revision: 75045
Log:
Silence compiler warning
Modified:
python/branches/py3k/Objects/longobject.c
Modified: python/branches/py3k/Objects/longobject.c
==============================================================================
--- python/branches/py3k/Objects/longobject.c (original)
+++ python/branches/py3k/Objects/longobject.c Thu Sep 24 20:31:17 2009
@@ -1834,7 +1834,8 @@
accumbits += PyLong_SHIFT;
assert(accumbits >= bits);
do {
- Py_UNICODE cdigit = accum & (base - 1);
+ Py_UNICODE cdigit;
+ cdigit = (Py_UNICODE)(accum & (base - 1));
cdigit += (cdigit < 10) ? '0' : 'a'-10;
assert(p > PyUnicode_AS_UNICODE(str));
*--p = cdigit;
More information about the Python-checkins
mailing list