mirror of
https://github.com/fluencelabs/assemblyscript
synced 2025-06-20 18:26:40 +00:00
Update Binaryen to latest; Various fixes
This commit is contained in:
@ -213,7 +213,11 @@ export class Type {
|
||||
} else if (!target.is(TypeFlags.REFERENCE)) {
|
||||
if (this.is(TypeFlags.INTEGER)) {
|
||||
if (target.is(TypeFlags.INTEGER)) {
|
||||
if (!signednessIsRelevant || this.is(TypeFlags.SIGNED) == target.is(TypeFlags.SIGNED)) {
|
||||
if (
|
||||
!signednessIsRelevant ||
|
||||
this == Type.bool || // a bool (0 or 1) can be safely assigned to all sorts of integers
|
||||
this.is(TypeFlags.SIGNED) == target.is(TypeFlags.SIGNED)
|
||||
) {
|
||||
return this.size <= target.size;
|
||||
}
|
||||
} else if (target.kind == TypeKind.F32) {
|
||||
|
Reference in New Issue
Block a user