Fix compiler warning in Py CFC.
Project: http://git-wip-us.apache.org/repos/asf/lucy-clownfish/repo Commit: http://git-wip-us.apache.org/repos/asf/lucy-clownfish/commit/d8eb00c4 Tree: http://git-wip-us.apache.org/repos/asf/lucy-clownfish/tree/d8eb00c4 Diff: http://git-wip-us.apache.org/repos/asf/lucy-clownfish/diff/d8eb00c4 Branch: refs/heads/master Commit: d8eb00c49fa63605f5e423e89a8c0f739316a59b Parents: 0f6fdb4 Author: Marvin Humphrey <[email protected]> Authored: Sat Mar 19 02:16:04 2016 +0000 Committer: Marvin Humphrey <[email protected]> Committed: Sat Mar 19 22:34:21 2016 -0700 ---------------------------------------------------------------------- compiler/python/src/cfc/_cfc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/lucy-clownfish/blob/d8eb00c4/compiler/python/src/cfc/_cfc.c ---------------------------------------------------------------------- diff --git a/compiler/python/src/cfc/_cfc.c b/compiler/python/src/cfc/_cfc.c index 0f6c882..e7e8f3f 100644 --- a/compiler/python/src/cfc/_cfc.c +++ b/compiler/python/src/cfc/_cfc.c @@ -177,7 +177,7 @@ static PyObject* S_CFCHierarchy_get_dest(PyObject *wrapper, PyObject *unused) { CHY_UNUSED_VAR(unused); const char *dest = CFCHierarchy_get_dest(S_to_Hierarchy(wrapper)); - return PyUnicode_DecodeASCII(dest, strlen(dest), NULL); + return PyUnicode_DecodeASCII(dest, (Py_ssize_t)strlen(dest), NULL); } static PyObject*
