From 7c8ca9a583148809ef19a81444a7e6af2b3f1eaf Mon Sep 17 00:00:00 2001 From: ALittlePatate Date: Sat, 18 Jan 2025 18:59:45 +0100 Subject: [PATCH] fix: compilation on Windows --- src/instructions.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/instructions.c b/src/instructions.c index 1a1931f..53662cc 100644 --- a/src/instructions.c +++ b/src/instructions.c @@ -297,7 +297,7 @@ void mul() { //MSVC wants to link __allmul, but a mul is just a lot of add, isn't it ? long long v1 = *get_reg(state->args->arg1, 0); - long long v2 = apply_cast(get_value(state->args->arg2, 0)); + long long v2 = apply_cast(get_value(state->args->arg2, 0), state->args->arg2); long long result = 0; int isNegative = 0;