Skip to content

Commit

Permalink
fix some MSVC warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
aquynh committed Mar 8, 2016
1 parent 5182798 commit 918215d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion arch/M68K/M68KDisassembler.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
6 changes: 3 additions & 3 deletions suite/arm/test_arm_regression.c
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down

0 comments on commit 918215d

Please sign in to comment.