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
|
// Make sure we always stay within range
|
||||||
if (s > (int)code_len)
|
if (s > (int)code_len)
|
||||||
*size = code_len;
|
*size = (uint16_t)code_len;
|
||||||
else
|
else
|
||||||
*size = (uint16_t)s;
|
*size = (uint16_t)s;
|
||||||
|
|
||||||
|
|
|
@ -3,9 +3,9 @@
|
||||||
|
|
||||||
// the following must precede stdio (woo, thanks msft)
|
// the following must precede stdio (woo, thanks msft)
|
||||||
#ifdef _MSC_VER
|
#ifdef _MSC_VER
|
||||||
#define _CRT_SECURE_NO_WARNINGS
|
//#define _CRT_SECURE_NO_WARNINGS
|
||||||
#define snprintf _snprintf
|
//#define snprintf _snprintf
|
||||||
#endif
|
//#endif
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
Loading…
Reference in New Issue