From 67051bcf15c79d1631a14dbd8d216f318801ed22 Mon Sep 17 00:00:00 2001 From: Marcelo Matus Date: Sun, 8 Jan 2006 06:55:41 +0000 Subject: [PATCH] fix template + global funcs git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8288 626c5289-ae23-0410-ae9c-e8d60b6d4f22 --- Source/Swig/cwrap.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Source/Swig/cwrap.c b/Source/Swig/cwrap.c index baaa4cafe..523623e60 100644 --- a/Source/Swig/cwrap.c +++ b/Source/Swig/cwrap.c @@ -330,14 +330,14 @@ Swig_cfunction_call(String_or_char *name, ParmList *parms) { */ if (SwigType_istemplate(name)) { String *prefix = Swig_scopename_prefix(nname); - String *last = Swig_scopename_last(nname); if (!prefix || Len(prefix) == 0) { - Printf(func,"%s(", last); + Printf(func,"%s(", nname); } else { + String *last = Swig_scopename_last(nname); Printf(func,"%s::SWIGTEMPLATEDISAMBIGUATOR %s(", prefix, last); + Delete(last); } Delete(prefix); - Delete(last); } else { Printf(func,"%s(", nname); }