From d4b7275f511dd79e530417e63a75e57580199602 Mon Sep 17 00:00:00 2001 From: William S Fulton Date: Tue, 13 Nov 2012 22:18:52 +0000 Subject: [PATCH] Fix Swig_scopename_last. It was truncating the first two letters of a symbol if the symbol did not contain any qualifiers. Does not seem to change much currently except some generated error messages in overloaded templated methods in classes. However the fix is needed for some commits shortly forthcoming. git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13881 626c5289-ae23-0410-ae9c-e8d60b6d4f22 --- Source/Swig/misc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/Swig/misc.c b/Source/Swig/misc.c index 6d0297b05..a9aacc02e 100644 --- a/Source/Swig/misc.c +++ b/Source/Swig/misc.c @@ -880,8 +880,8 @@ String *Swig_scopename_last(const String *s) { while (*c) { if ((*c == ':') && (*(c + 1) == ':')) { - cc = c; c += 2; + cc = c; } else { if (*c == '<') { int level = 1; @@ -898,7 +898,7 @@ String *Swig_scopename_last(const String *s) { } } } - return NewString(cc + 2); + return NewString(cc); } /* -----------------------------------------------------------------------------