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
|
// returns a malloced string that has the hex version of the string in it
|
||||||
// null if failed to malloc
|
// null if failed to malloc
|
||||||
char * hex_out = NULL;
|
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
|
hex_out = (char *) malloc(len*2 + 1); // two ascii characters per input character, plus trailing null
|
||||||
if (!hex_out) { goto Exit; }
|
if (!hex_out) { goto Exit; }
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue