From: Benjamin Peterson Date: Sun, 11 May 2014 23:14:00 +0000 (-0700) Subject: cast away warnings X-Git-Tag: v2.7.7rc1~19 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a1ccfb513b71defc841746cb5c76bbba3634e194;p=python cast away warnings --- diff --git a/Modules/operator.c b/Modules/operator.c index ac3caf8291..7cbb45e7db 100644 --- a/Modules/operator.c +++ b/Modules/operator.c @@ -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)); }