diff --git a/Lib/python/cstring.i b/Lib/python/cstring.i index 5f9963be9..444264b44 100644 --- a/Lib/python/cstring.i +++ b/Lib/python/cstring.i @@ -267,7 +267,7 @@ */ %define %cstring_output_allocate_size(TYPEMAP, SIZE, RELEASE) -%typemap(ignore) (TYPEMAP, SIZE) ($*1_ltype temp = 0, $*2_ltype tempn) { +%typemap(in,numinputs=0) (TYPEMAP, SIZE) ($*1_ltype temp = 0, $*2_ltype tempn) { $1 = &temp; $2 = &tempn; }