Glen Stampoultzis 2004-04-29 07:04:04 +00:00
parent b147d06b0d
commit 2090d7dcab

View File

@ -737,17 +737,18 @@ end;
} }
private void setParameterRVA(Node n, int formulaType) { private void setParameterRVA(Node n, int formulaType) {
Ptg p = (Ptg) n.getValue(); Ptg p = n.getValue();
if (p instanceof AbstractFunctionPtg) {
int numOperands = n.getNumChildren(); int numOperands = n.getNumChildren();
for (int i =0;i<n.getNumChildren();i++) { if (p instanceof AbstractFunctionPtg) {
for (int i =0;i<numOperands;i++) {
setParameterRVA(n.getChild(i),((AbstractFunctionPtg)p).getParameterClass(i),formulaType); setParameterRVA(n.getChild(i),((AbstractFunctionPtg)p).getParameterClass(i),formulaType);
if (n.getChild(i).getValue() instanceof AbstractFunctionPtg) { // if (n.getChild(i).getValue() instanceof AbstractFunctionPtg) {
// setParameterRVA(n.getChild(i),formulaType);
// }
setParameterRVA(n.getChild(i),formulaType); setParameterRVA(n.getChild(i),formulaType);
} }
}
} else { } else {
for (int i =0;i<n.getNumChildren();i++) { for (int i =0;i<numOperands;i++) {
setParameterRVA(n.getChild(i),formulaType); setParameterRVA(n.getChild(i),formulaType);
} }
} }