From aa2ab41bb93bfa16e42a579fa92ceb23c63d64dc Mon Sep 17 00:00:00 2001 From: justanotheranonymoususer Date: Wed, 28 May 2025 22:05:55 +0000 Subject: ARM64 disassembler: fix MSVC compilation --- arch/arm64/disassembler/decode_scratchpad.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/arch/arm64/disassembler/decode_scratchpad.c b/arch/arm64/disassembler/decode_scratchpad.c index c1f63c10..ebab3755 100644 --- a/arch/arm64/disassembler/decode_scratchpad.c +++ b/arch/arm64/disassembler/decode_scratchpad.c @@ -4,6 +4,12 @@ #include #include +#if defined(_MSC_VER) +// Disable warning: Unary minus operator applied to unsigned type, result still unsigned. +// This warning is treated as an error with the /sdl flag. +#pragma warning(disable:4146) +#endif + //----------------------------------------------------------------------------- // registers //----------------------------------------------------------------------------- -- cgit v1.3.1