Commit 22d68d36 authored by Benjamin Peterson's avatar Benjamin Peterson

cast away warnings

parent 58d067d8
......@@ -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));
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment