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:
parent
d25177685d
commit
66b4d64298
2 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue