From e0c82f6f2b5d550d45449979980a024fc822a34d Mon Sep 17 00:00:00 2001 From: William S Fulton Date: Thu, 25 Nov 2010 20:35:10 +0000 Subject: [PATCH] portability fix git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12308 626c5289-ae23-0410-ae9c-e8d60b6d4f22 --- Source/Modules/d.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Source/Modules/d.cxx b/Source/Modules/d.cxx index c4274bf63..ce33b5252 100644 --- a/Source/Modules/d.cxx +++ b/Source/Modules/d.cxx @@ -1015,6 +1015,7 @@ public: ParmList *l = Getattr(n, "parms"); String *tm; String *proxy_constructor_code = NewString(""); + int i; // Holds code for the constructor helper method generated only when the din // typemap has code in the pre or post attributes. @@ -1060,7 +1061,7 @@ public: /* Output each parameter */ Parm *p = l; - for (unsigned int i = 0; p; i++) { + for (i = 0; p; i++) { if (checkAttribute(p, "varargs:ignore", "1")) { // Skip ignored varargs. p = nextSibling(p);