forked from wolfSSL/wolfssl
Changed test returns for 'get_digit' to remove implicit conversion errors
This commit is contained in:
19
tests/api.c
19
tests/api.c
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user