From eece31c1ab30a6d9f2adf053dbb5fb3fc8532075 Mon Sep 17 00:00:00 2001 From: "kr.angelov" Date: Wed, 19 Jun 2013 18:47:52 +0000 Subject: [PATCH] fix an issue in the Python binding related to the 32 vs 64 bit compatibility --- src/runtime/python/pypgf.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/runtime/python/pypgf.c b/src/runtime/python/pypgf.c index 8acfcf451..756f7c7cb 100644 --- a/src/runtime/python/pypgf.c +++ b/src/runtime/python/pypgf.c @@ -679,7 +679,7 @@ Concr_parse(ConcrObject* self, PyObject *args, PyObject *keywds) { static char *kwlist[] = {"sentence", "tokens", "cat", "n", NULL}; - size_t len; + int len; const uint8_t *buf = NULL; PyObject* py_lexer = NULL; const char *catname_s = NULL; @@ -770,7 +770,7 @@ Concr_getCompletions(ConcrObject* self, PyObject *args, PyObject *keywds) static char *kwlist[] = {"sentence", "tokens", "cat", "prefix", "n", NULL}; - size_t len; + int len; const uint8_t *buf = NULL; PyObject* py_lexer = NULL; const char *catname_s = NULL;