From fc56e5604831723da4f255ca3d6ea5f3f33d2d5b Mon Sep 17 00:00:00 2001 From: Noel Eck Date: Mon, 19 Mar 2018 09:18:54 -0400 Subject: [PATCH] SWIGPYTHON: Apply unsigned int to uints for python To handle uint data types in python bindings, apply unsigned int globally. Signed-off-by: Noel Eck --- src/common_top.i | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/common_top.i b/src/common_top.i index f21496f0..c9edb585 100644 --- a/src/common_top.i +++ b/src/common_top.i @@ -46,6 +46,11 @@ void cleanUp(); // Disable nested struct warnings #pragma SWIG nowarn=312,325 +#if SWIGPYTHON +/* Apply all uints as 'unsigned int' for python */ +%apply unsigned int {uint}; +#endif + /* The pyupm_doxy2swig.i file is created via doxy2swig.py from doxygen xml * output during doc build. This file is used by swig to provide native * python module documentation.