mirror of https://github.com/ARMmbed/mbed-os.git
Fix a rare case of imcompatibility between base_control_t and control_t.
Both branches of a ternary operator should yield the same type; compatibility is not enough in that case.pull/2714/head
parent
f0fbdbd22c
commit
9bc5adfb21
|
@ -135,7 +135,7 @@ control_t test_initialize(const size_t call_count)
|
||||||
TEST_ASSERT(rc >= ARM_DRIVER_OK);
|
TEST_ASSERT(rc >= ARM_DRIVER_OK);
|
||||||
if (rc == ARM_DRIVER_OK) {
|
if (rc == ARM_DRIVER_OK) {
|
||||||
TEST_ASSERT_EQUAL(1, capabilities.asynchronous_ops);
|
TEST_ASSERT_EQUAL(1, capabilities.asynchronous_ops);
|
||||||
return (call_count < REPEAT_INSTANCES) ? (CaseTimeout(200) + CaseRepeatAll) : CaseNext;
|
return (call_count < REPEAT_INSTANCES) ? (CaseTimeout(200) + CaseRepeatAll) : (control_t) CaseNext;
|
||||||
}
|
}
|
||||||
|
|
||||||
TEST_ASSERT(rc == 1);
|
TEST_ASSERT(rc == 1);
|
||||||
|
|
Loading…
Reference in New Issue