Skip to content

Commit a9d9987

Browse files
committed
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.
1 parent 85bce14 commit a9d9987

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

TESTS/storage_abstraction/basicAPI/basicAPI.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ control_t test_initialize(const size_t call_count)
135135
TEST_ASSERT(rc >= ARM_DRIVER_OK);
136136
if (rc == ARM_DRIVER_OK) {
137137
TEST_ASSERT_EQUAL(1, capabilities.asynchronous_ops);
138-
return (call_count < REPEAT_INSTANCES) ? (CaseTimeout(200) + CaseRepeatAll) : CaseNext;
138+
return (call_count < REPEAT_INSTANCES) ? (CaseTimeout(200) + CaseRepeatAll) : (control_t) CaseNext;
139139
}
140140

141141
TEST_ASSERT(rc == 1);

0 commit comments

Comments
 (0)