diff --git a/arch/M68K/M68KDisassembler.c b/arch/M68K/M68KDisassembler.c index 0aed3feea7..fcda4fd466 100644 --- a/arch/M68K/M68KDisassembler.c +++ b/arch/M68K/M68KDisassembler.c @@ -3918,7 +3918,7 @@ bool M68K_getInstruction(csh ud, const uint8_t* code, size_t code_len, MCInst* i // Make sure we always stay within range if (s > (int)code_len) - *size = code_len; + *size = (uint16_t)code_len; else *size = (uint16_t)s; diff --git a/suite/arm/test_arm_regression.c b/suite/arm/test_arm_regression.c index ea12fc6851..4c03232aa9 100644 --- a/suite/arm/test_arm_regression.c +++ b/suite/arm/test_arm_regression.c @@ -3,9 +3,9 @@ // the following must precede stdio (woo, thanks msft) #ifdef _MSC_VER -#define _CRT_SECURE_NO_WARNINGS -#define snprintf _snprintf -#endif +//#define _CRT_SECURE_NO_WARNINGS +//#define snprintf _snprintf +//#endif #include #include #include