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:
parent
1d285a5326
commit
7b2a85caf7
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() & 0xff;
|
||||
int pos = param.getParameterPosition() & 0xFFFF;
|
||||
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() & 0xff;
|
||||
int pos = param.getParameterPosition() & 0xFFFF;
|
||||
try {
|
||||
PDOMNodeLinkedList list = new PDOMNodeLinkedList(pdom, record + TEMPLATE_PARAMS, getLinkageImpl());
|
||||
return (ICPPTemplateParameter) list.getNodeAt(pos);
|
||||
|
|
Loading…
Add table
Reference in a new issue