fix some MSVC warnings

This commit is contained in:
Nguyen Anh Quynh 2016-03-08 11:08:20 +08:00
parent 5182798021
commit 918215d7ef
2 changed files with 4 additions and 4 deletions

View File

@ -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;

View File

@ -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>