Skip to content

Commit

Permalink
Fix TravisCI build failure.
Browse files Browse the repository at this point in the history
  • Loading branch information
jralls committed Sep 18, 2018
1 parent 0cf42a7 commit 59a6ebc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion common/base-typemaps.i
Expand Up @@ -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);
Expand Down

0 comments on commit 59a6ebc

Please sign in to comment.