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

Correct adaption of template parameter, follow up for bug 253080.

This commit is contained in:
Markus Schorn 2008-11-18 08:48:57 +00:00
parent d25177685d
commit 66b4d64298
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() & 0xFFFF;
int pos = param.getParameterPosition() & 0xff;
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() & 0xFFFF;
int pos = param.getParameterPosition() & 0xff;
try {
PDOMNodeLinkedList list = new PDOMNodeLinkedList(pdom, record + TEMPLATE_PARAMS, getLinkageImpl());
return (ICPPTemplateParameter) list.getNodeAt(pos);