diff --git a/ets2panda/compiler/core/ETSGen.cpp b/ets2panda/compiler/core/ETSGen.cpp index 5b08e72fe6e600776d6686a52e1bd0f32e7d4ef2..0ab9cc3907b87a0d1b4a19d58791e4b51564057d 100644 --- a/ets2panda/compiler/core/ETSGen.cpp +++ b/ets2panda/compiler/core/ETSGen.cpp @@ -2482,7 +2482,6 @@ void ETSGen::NewArray(const ir::AstNode *const node, const VReg arr, const VReg void ETSGen::LoadResizableArrayLength(const ir::AstNode *node) { Ra().Emit(node, Signatures::BUILTIN_ARRAY_LENGTH, dummyReg_, 0); - Sa().Emit(node); SetAccumulatorType(Checker()->GlobalIntType()); } diff --git a/ets2panda/compiler/scripts/signatures.yaml b/ets2panda/compiler/scripts/signatures.yaml index 15dfcdbfe96bd5c3900cd74d7e3162fbbc665e31..4c2d7f39a49602c33da47d953cc5dd6f1d6804ad 100644 --- a/ets2panda/compiler/scripts/signatures.yaml +++ b/ets2panda/compiler/scripts/signatures.yaml @@ -773,7 +773,7 @@ signatures: - callee: BUILTIN_ARRAY method_name: length params: [] - return_type: PRIMITIVE_DOUBLE + return_type: PRIMITIVE_INT ref: BUILTIN_ARRAY_LENGTH - callee: BUILTIN_ARRAY