suite: fix an compilation warning reported by MSVC on test_arm_regression.c

This commit is contained in:
Nguyen Anh Quynh 2015-01-13 14:21:15 +08:00
parent 08482e106d
commit ea39692786

View File

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