mirror of
https://github.com/Eaglercraft-TeaVM-Fork/eagler-teavm.git
synced 2024-12-22 00:04:10 -08:00
wasm gc: fix infinite loop in type inference
This commit is contained in:
parent
31d89ebec2
commit
a0224f60e6
|
@ -15,6 +15,7 @@
|
|||
*/
|
||||
package org.teavm.backend.wasm.gc;
|
||||
|
||||
import java.util.Objects;
|
||||
import org.teavm.model.ValueType;
|
||||
|
||||
public class PreciseValueType {
|
||||
|
@ -25,4 +26,22 @@ public class PreciseValueType {
|
|||
this.valueType = valueType;
|
||||
this.isArrayUnwrap = isArrayUnwrap;
|
||||
}
|
||||
|
||||
@Override
|
||||
public final boolean equals(Object o) {
|
||||
if (this == o) {
|
||||
return true;
|
||||
}
|
||||
if (!(o instanceof PreciseValueType)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
var that = (PreciseValueType) o;
|
||||
return isArrayUnwrap == that.isArrayUnwrap && valueType.equals(that.valueType);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(valueType, isArrayUnwrap);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user