64 bit platform fixes for the varargs handling in SWIG_GetArgs

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7383 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
William S Fulton 2005-08-23 09:18:43 +00:00
commit f6a17a171c

View file

@ -338,7 +338,7 @@ public:
} }
Putc('o',argstr); Putc('o',argstr);
Printf(args,",NULL"); Printf(args,",(void *)0");
if (i >= num_required) { if (i >= num_required) {
Printf(incode, "if (objc > %d) {\n", i+1); Printf(incode, "if (objc > %d) {\n", i+1);
} }
@ -353,7 +353,7 @@ public:
SwigType *lt = SwigType_ltype(pt); SwigType *lt = SwigType_ltype(pt);
SwigType_remember(pt); SwigType_remember(pt);
if (Cmp(lt,"p.void") == 0) { if (Cmp(lt,"p.void") == 0) {
Printf(args,",NULL"); Printf(args,",(void *)0");
} else { } else {
Printf(args,",SWIGTYPE%s", SwigType_manglestr(pt)); Printf(args,",SWIGTYPE%s", SwigType_manglestr(pt));
} }