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
This commit is contained in:
parent
b40f678115
commit
d4b7275f51
1 changed files with 2 additions and 2 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
/* -----------------------------------------------------------------------------
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue