[Python-checkins] cpython (2.7): cast away warnings
benjamin.peterson
python-checkins at python.org
Mon May 12 01:14:57 CEST 2014
http://hg.python.org/cpython/rev/75a0a8c121a4
changeset: 90646:75a0a8c121a4
branch: 2.7
user: Benjamin Peterson <benjamin at python.org>
date: Sun May 11 16:14:00 2014 -0700
summary:
cast away warnings
files:
Modules/operator.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/Modules/operator.c b/Modules/operator.c
--- a/Modules/operator.c
+++ b/Modules/operator.c
@@ -309,8 +309,8 @@
/* Unicode string */
if (PyUnicode_Check(a) && PyUnicode_Check(b)) {
- rc = _tscmp(PyUnicode_AS_DATA(a),
- PyUnicode_AS_DATA(b),
+ rc = _tscmp((const unsigned char *)PyUnicode_AS_DATA(a),
+ (const unsigned char *)PyUnicode_AS_DATA(b),
PyUnicode_GET_DATA_SIZE(a),
PyUnicode_GET_DATA_SIZE(b));
}
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list