fix some MSVC warnings
This commit is contained in:
parent
5182798021
commit
918215d7ef
|
@ -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;
|
||||
|
||||
|
|
|
@ -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 <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
|
Loading…
Reference in New Issue