From b86db5b96e88b6db5bcda62d9246297b2795fc9e Mon Sep 17 00:00:00 2001 From: Maykel Arias Torres Date: Sat, 29 Jun 2019 10:42:19 -0400 Subject: [PATCH] [swig] refs #88 Changing the generation of values for int64 in the multi-return generation --- lib/swig/dynamic/mem.i | 4 ++-- lib/swig/dynamic/typemaps.i | 7 ++++++- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/lib/swig/dynamic/mem.i b/lib/swig/dynamic/mem.i index 382cee1f8..03c68d100 100644 --- a/lib/swig/dynamic/mem.i +++ b/lib/swig/dynamic/mem.i @@ -11,12 +11,12 @@ /* Handle out typemap. */ %typemap(argout) Handle* { - %append_output( SWIG_From_long(*$1) ); + %append_output( SWIG_From_long_SS_long(*$1) ); } /* Handle not as pointer is input. */ %typemap(in) Handle { - SWIG_AsVal_long($input, (long*)&$1); + SWIG_AsVal_long_SS_long($input, (long*)&$1); } diff --git a/lib/swig/dynamic/typemaps.i b/lib/swig/dynamic/typemaps.i index 998c30226..3334228e9 100644 --- a/lib/swig/dynamic/typemaps.i +++ b/lib/swig/dynamic/typemaps.i @@ -1,6 +1,11 @@ /*GoInt64* as function return typemap*/ %typemap(argout) GoInt64* { - %append_output( SWIG_From_long( *$1 ) ); + %append_output( SWIG_From_long_SS_long( *$1 ) ); +} + +/*GoUint64* as function return typemap*/ +%typemap(argout) GoUint64* { + %append_output( SWIG_From_unsigned_SS_long_SS_long( *$1 ) ); } /*