From 39c2d93bddd4aa22f50d5b14b4515e938e882212 Mon Sep 17 00:00:00 2001 From: Ghislain MARY Date: Tue, 16 Dec 2014 17:24:24 +0100 Subject: [PATCH] Fix format string for size_t type in Python module. --- tools/python/apixml2python/linphone.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/python/apixml2python/linphone.py b/tools/python/apixml2python/linphone.py index ce1488769..751e0b367 100644 --- a/tools/python/apixml2python/linphone.py +++ b/tools/python/apixml2python/linphone.py @@ -172,7 +172,7 @@ class ArgumentType: """if (PyInt_Check({arg_name})) {result_name}{result_suffix} = {cast}(size_t)PyInt_AsSsize_t({arg_name}); else if (PyLong_Check({arg_name})) {result_name}{result_suffix} = {cast}(size_t)PyLong_AsSsize_t({arg_name}); """ - self.fmt_str = 'L' + self.fmt_str = 'n' self.cfmt_str = '%lu' elif self.basic_type == 'float': self.type_str = 'float'