This commit is contained in:
Volker Berlin 2022-03-20 18:02:09 +01:00
parent 4fbce5800c
commit 1f51fbf036

View File

@ -432,12 +432,12 @@ class LocaleVariableManager {
/** /**
* Get the ValueType of the variable. * Get the ValueType of the variable.
* *
* @param slot * @param idx
* the memory/slot index of the local variable in Java * the index of the local variable in WASM
* @return the ValueType * @return the ValueType
*/ */
AnyType getValueType( int slot ) { AnyType getValueType( int idx ) {
return variables[slot].valueType; return variables[idx].valueType;
} }
/** /**