File tree Expand file tree Collapse file tree
src/main/java/org/bridj/demangling Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -118,7 +118,7 @@ public TemplateArg parseTemplateArg() throws DemanglingException {
118118 public TypeRef parseType () throws DemanglingException {
119119 if (Character .isDigit (peekChar ())) {
120120 Ident name = ensureOfType (parseNonCompoundIdent (), Ident .class );
121- String id = nextShortcutId (); // we get the id before parsing the part (might be template parameters and we need to get the ids in the right order)
121+ String id = nextShortcutId ();
122122 TypeRef res = simpleType (name );
123123 typeShortcuts .put (id , res );
124124 return res ;
@@ -152,8 +152,9 @@ public TypeRef parseType() throws DemanglingException {
152152 return typeShortcuts .get (templatedId );
153153 }
154154 }
155+ } else {
156+ position -= delta ;
155157 }
156- position -= delta ;
157158 }
158159 }
159160 // WARNING/INFO/NB: we intentionally continue to the N case
You can’t perform that action at this time.
0 commit comments