Changed test returns for 'get_digit' to remove implicit conversion errors

This commit is contained in:
Ethan Looney
2020-07-29 14:23:03 -07:00
parent 7c59c74e07
commit b4cd0886bb

View File

@@ -33757,11 +33757,24 @@ static int test_get_digit (void)
ret = -1;
}
if (ret == 0) {
ret = get_digit(NULL, n);
if (get_digit(NULL, n) != 0) { /* Should not hit this*/
ret = -1;
}
}
if (ret == 0) {
ret = get_digit(&a, n);
if (get_digit(NULL, n) == 0) { /* Should hit this*/
ret = 0;
}
}
if (ret == 0) {
if (get_digit(&a, n) != 0) { /* Should not hit this*/
ret = -1;
}
}
if (ret == 0) {
if (get_digit(&a, n) == 0) { /* Should hit this*/
ret = 0;
}
}