code optimize

This commit is contained in:
Volker Berlin 2020-03-29 18:39:45 +02:00
parent b1c6794a94
commit 7a9750afdd

View File

@ -77,10 +77,10 @@ class StackInspector {
}
try {
StackValue stackValue = null;
for( int p = 0; p < count; p++ ) {
StackValue stackValue;
do {
stackValue = stack.pop();
}
} while( --count > 0 );
return stackValue;
} catch( NoSuchElementException ex ) {
throw new WasmException( "Push instruction not found", -1 ); // should never occur