Skip to content

Commit aa2ab41

Browse files
ARM64 disassembler: fix MSVC compilation
1 parent 8ba8388 commit aa2ab41

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

arch/arm64/disassembler/decode_scratchpad.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@
44
#include <stdint.h>
55
#include <string.h>
66

7+
#if defined(_MSC_VER)
8+
// Disable warning: Unary minus operator applied to unsigned type, result still unsigned.
9+
// This warning is treated as an error with the /sdl flag.
10+
#pragma warning(disable:4146)
11+
#endif
12+
713
//-----------------------------------------------------------------------------
814
// registers
915
//-----------------------------------------------------------------------------

0 commit comments

Comments
 (0)