gnucash maint: Fix TravisCI build failure.
John Ralls
jralls at code.gnucash.org
Tue Sep 18 18:07:55 EDT 2018
Updated via https://github.com/Gnucash/gnucash/commit/59a6ebc3 (commit)
from https://github.com/Gnucash/gnucash/commit/0cf42a75 (commit)
commit 59a6ebc33a289de9f35a975feacfc91e09bb54e1
Author: John Ralls <jralls at ceridwen.us>
Date: Tue Sep 18 15:07:47 2018 -0700
Fix TravisCI build failure.
diff --git a/common/base-typemaps.i b/common/base-typemaps.i
index f53ed09..33e9dff 100644
--- a/common/base-typemaps.i
+++ b/common/base-typemaps.i
@@ -252,7 +252,8 @@ typedef char gchar;
for (i = size-1; i >= 0; i--) {
PyObject *o = PyList_GetItem($input, i);
if (PyUnicode_Check(o)) {
- $1 = g_slist_prepend($1,PyUnicode_AsUTF8(PyList_GetItem($input, i)));
+ /* There's no way to preserve constness in GSList items. */
+ $1 = g_slist_prepend($1, (char*)PyUnicode_AsUTF8(PyList_GetItem($input, i)));
} else {
PyErr_SetString(PyExc_TypeError, "list must contain strings");
g_slist_free($1);
Summary of changes:
common/base-typemaps.i | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
More information about the gnucash-changes
mailing list