]> granicus.if.org Git - python/commitdiff
cast away warnings
authorBenjamin Peterson <benjamin@python.org>
Sun, 11 May 2014 23:14:00 +0000 (16:14 -0700)
committerBenjamin Peterson <benjamin@python.org>
Sun, 11 May 2014 23:14:00 +0000 (16:14 -0700)
Modules/operator.c

index ac3caf8291cf36911b97cd708b7f75bedf87d85a..7cbb45e7db67d92f1e9d78c9819bc5bffcd3caaa 100644 (file)
@@ -309,8 +309,8 @@ compare_digest(PyObject *self, PyObject *args)
 
     /* 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));
     }