From 18cb9464057df74c44aec198e0c8a6a3e87c5c25 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Mon, 18 Apr 2016 23:31:18 +0200 Subject: [PATCH] Fix cmodtype typemap for "const bool &" We need bool to be "const", not the pointer. This fixes a few of the errors in the "bools" unit test. --- Lib/c/c.swg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/c/c.swg b/Lib/c/c.swg index 9831dc678..7bc3730e1 100644 --- a/Lib/c/c.swg +++ b/Lib/c/c.swg @@ -169,7 +169,7 @@ explicit_same_type_unconsted_all_primitive_types_but_void(cmodtype); %typemap(cmodtype, fragment="stdbool_inc") bool, bool *, bool **, const bool, const bool *, bool * [ANY] "$1_type" %typemap(cmodtype, fragment="stdbool_inc") bool & "$1_ltype" -%typemap(cmodtype, fragment="stdbool_inc") const bool & "$1_ltype const" +%typemap(cmodtype, fragment="stdbool_inc") const bool & "const $1_ltype" // Typemaps for assigning wrapper parameters to local variables