lucy-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mar...@apache.org
Subject [13/14] lucy-clownfish git commit: Fix compiler warning in Py CFC.
Date Sun, 20 Mar 2016 05:54:07 GMT
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 <marvin@rectangular.com>
Authored: Sat Mar 19 02:16:04 2016 +0000
Committer: Marvin Humphrey <marvin@rectangular.com>
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*


Mime
View raw message