mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2026-07-09 23:10:51 +02:00
Changed test returns for 'get_digit' to remove implicit conversion errors
This commit is contained in:
+16
-3
@@ -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