diff --git a/ets2panda/compiler/core/ETSGen.cpp b/ets2panda/compiler/core/ETSGen.cpp index 64969cbd232c5fbc3cc3c52d7dbd0b619e6ddd66..1dcf579bb498e29a2a2f57422b49dbf9f663d4e2 100644 --- a/ets2panda/compiler/core/ETSGen.cpp +++ b/ets2panda/compiler/core/ETSGen.cpp @@ -2465,7 +2465,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 d44d0d0c1691f9531061b66cc424f131e72c92f7..7dda2a7e5e391b8cc55ff879a870b3a10de5b081 100644 --- a/ets2panda/compiler/scripts/signatures.yaml +++ b/ets2panda/compiler/scripts/signatures.yaml @@ -771,7 +771,7 @@ signatures: - callee: BUILTIN_ARRAY method_name: length params: [] - return_type: PRIMITIVE_DOUBLE + return_type: PRIMITIVE_INT ref: BUILTIN_ARRAY_LENGTH - callee: BUILTIN_ARRAY