1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-29 19:45:01 +02:00

My bad, reverting to Sergey's version, follow up for bug 253080.

This commit is contained in:
Markus Schorn 2008-11-18 09:23:45 +00:00
parent 1d285a5326
commit 7b2a85caf7
2 changed files with 2 additions and 2 deletions

View file

@ -237,7 +237,7 @@ public class PDOMCPPClassTemplate extends PDOMCPPClassType
public ICPPTemplateParameter adaptTemplateParameter(ICPPTemplateParameter param) {
// Template parameters are identified by their position in the parameter list.
int pos = param.getParameterPosition() & 0xff;
int pos = param.getParameterPosition() & 0xFFFF;
if (params != null) {
return pos < params.length ? params[pos] : null;
}

View file

@ -128,7 +128,7 @@ class PDOMCPPFunctionTemplate extends PDOMCPPFunction
public ICPPTemplateParameter adaptTemplateParameter(ICPPTemplateParameter param) {
// Template parameters are identified by their position in the parameter list.
int pos = param.getParameterPosition() & 0xff;
int pos = param.getParameterPosition() & 0xFFFF;
try {
PDOMNodeLinkedList list = new PDOMNodeLinkedList(pdom, record + TEMPLATE_PARAMS, getLinkageImpl());
return (ICPPTemplateParameter) list.getNodeAt(pos);