fix compilation error on mipsel target
authorJérémy Lal <kapouer@melix.org>
Sun, 3 Dec 2023 21:41:14 +0000 (22:41 +0100)
committerJérémy Lal <kapouer@melix.org>
Sun, 3 Dec 2023 21:41:14 +0000 (22:41 +0100)
Last-Update: 2021-10-28
Forwarded: https://github.com/nodejs/node/issues/40624

Gbp-Pq: Topic mips
Gbp-Pq: Name compilation_error.patch

deps/v8/src/compiler/backend/mips/code-generator-mips.cc

index 4dd0d5cd324d7fb92f74e82473f35fc3716f6fe9..19fd886f0163af698ae671070c295b763b5b4aa4 100644 (file)
@@ -4101,7 +4101,7 @@ void CodeGenerator::AssembleReturn(InstructionOperand* additional_pop_count) {
     } else if (FLAG_debug_code) {
       __ Assert(eq, AbortReason::kUnexpectedAdditionalPopValue,
                 g.ToRegister(additional_pop_count),
-                Operand(static_cast<int64_t>(0)));
+                Operand(static_cast<int>(0)));
     }
   }
   // Functions with JS linkage have at least one parameter (the receiver).