From 3eb4d4710abee41d748b7c67c5637bf73341622e Mon Sep 17 00:00:00 2001 From: "gergely.erdelyi" Date: Tue, 21 Jul 2009 18:38:51 +0000 Subject: [PATCH] ua.i: op_t char member (n, offb, etc.) are now correctly converted to integers --- swig/ua.i | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/swig/ua.i b/swig/ua.i index 3347881..1ae9cd1 100644 --- a/swig/ua.i +++ b/swig/ua.i @@ -1,6 +1,15 @@ +%apply unsigned char { char n }; +%apply unsigned char { char offb }; +%apply unsigned char { char offo }; +%apply unsigned char { char dtyp }; %include "ua.hpp" +%clear (char n); +%clear (char offb); +%clear (char offo); +%clear (char dtyp); + // Small function to get the global cmd pointer // In Python it returns an insn_t class instance %inline {