summaryrefslogtreecommitdiff
path: root/src/runtime/python/pypgf.c
diff options
context:
space:
mode:
authorkrasimir <krasimir@chalmers.se>2016-05-20 15:20:02 +0000
committerkrasimir <krasimir@chalmers.se>2016-05-20 15:20:02 +0000
commitfdf4bd3196030fdc9d5103e7ae961171a4f65bc4 (patch)
tree005760864fb9a31b7d8195b5ed4073c6a551a60e /src/runtime/python/pypgf.c
parent1a0defc0fc98cfb312fc0107d2fef56a2ee593e8 (diff)
change the API for literals in Java and Python. The input sentence is no longer a parameter to the callbacks.
Diffstat (limited to 'src/runtime/python/pypgf.c')
-rw-r--r--src/runtime/python/pypgf.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/runtime/python/pypgf.c b/src/runtime/python/pypgf.c
index 9f88a771b..c3eef6afc 100644
--- a/src/runtime/python/pypgf.c
+++ b/src/runtime/python/pypgf.c
@@ -1280,11 +1280,11 @@ pypgf_literal_callback_match(PgfLiteralCallback* self, PgfConcr* concr,
gu_container(self, PyPgfLiteralCallback, callback);
PyObject* result =
- PyObject_CallFunction(callback->pycallback, "isi",
- lin_idx, sentence, *poffset);
+ PyObject_CallFunction(callback->pycallback, "ii",
+ lin_idx, *poffset);
if (result == NULL)
return NULL;
-
+
if (result == Py_None) {
Py_DECREF(result);
return NULL;