diff --git a/SWIG/Source/Modules/tcl8.cxx b/SWIG/Source/Modules/tcl8.cxx index 24770d354..8e39d8d5b 100644 --- a/SWIG/Source/Modules/tcl8.cxx +++ b/SWIG/Source/Modules/tcl8.cxx @@ -338,7 +338,7 @@ public: } Putc('o',argstr); - Printf(args,",NULL"); + Printf(args,",(void *)0"); if (i >= num_required) { Printf(incode, "if (objc > %d) {\n", i+1); } @@ -353,7 +353,7 @@ public: SwigType *lt = SwigType_ltype(pt); SwigType_remember(pt); if (Cmp(lt,"p.void") == 0) { - Printf(args,",NULL"); + Printf(args,",(void *)0"); } else { Printf(args,",SWIGTYPE%s", SwigType_manglestr(pt)); }