Skip to content

Commit

Permalink
Merge pull request eclipse-openj9#35 from runtimes/revert-32-revert-1…
Browse files Browse the repository at this point in the history
…8-ibm_sdk

Revert "Revert "Compile error fix""
  • Loading branch information
gacholio authored and GitHub Enterprise committed Feb 15, 2018
2 parents 36ed1cd + af49e8e commit 9427189
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions runtime/util/mthutil.c
Original file line number Diff line number Diff line change
Expand Up @@ -619,6 +619,8 @@ UDATA
getITableIndexForMethod(J9Method * method, J9Class *targetInterface)
{
J9Class *methodClass = J9_CLASS_FROM_METHOD(method);
const UDATA methodCount = methodClass->romClass->romMethodCount;
const UDATA methodIndex = method - methodClass->ramMethods;
UDATA skip = 0;
/* NULL targetInterface implies searching only within methodClass, which may be an obsolete class.
* This works because the methods for the local interface always appear first in the iTable, with
Expand Down Expand Up @@ -648,8 +650,6 @@ getITableIndexForMethod(J9Method * method, J9Class *targetInterface)
* ramMethod++;
* }
*/
const UDATA methodCount = methodClass->romClass->romMethodCount;
const UDATA methodIndex = method - methodClass->ramMethods;
if (methodIndex < methodCount) {
return methodIndex + skip;
}
Expand Down

0 comments on commit 9427189

Please sign in to comment.