mirror of
https://github.com/capstone-engine/capstone.git
synced 2024-11-28 07:50:39 +00:00
suite: fix an compilation warning reported by MSVC on test_arm_regression.c
This commit is contained in:
parent
08482e106d
commit
ea39692786
@ -29,7 +29,7 @@ static char* hex_string(unsigned char *str, int len)
|
||||
// returns a malloced string that has the hex version of the string in it
|
||||
// null if failed to malloc
|
||||
char * hex_out = NULL;
|
||||
size_t i = 0;
|
||||
int i = 0;
|
||||
hex_out = (char *) malloc(len*2 + 1); // two ascii characters per input character, plus trailing null
|
||||
if (!hex_out) { goto Exit; }
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user