diff options
| author | justanotheranonymoususer <justanotheranonymoususer@users.noreply.github.com> | 2025-05-28 22:05:55 +0000 |
|---|---|---|
| committer | galenbwill <galenbwill@users.noreply.github.com> | 2025-06-02 10:07:32 -0700 |
| commit | aa2ab41bb93bfa16e42a579fa92ceb23c63d64dc (patch) | |
| tree | 0fc0fc03efea17443a92a2e2b307f1a453930f47 /arch | |
| parent | 8ba8388e12ab32ad937c4514f7a907d2530f1ef8 (diff) | |
ARM64 disassembler: fix MSVC compilation
Diffstat (limited to 'arch')
| -rw-r--r-- | arch/arm64/disassembler/decode_scratchpad.c | 6 |
1 files changed, 6 insertions, 0 deletions
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 <stdint.h> #include <string.h> +#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 //----------------------------------------------------------------------------- |
