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/2559/head
							parent
							
								
									85bce1467f
								
							
						
					
					
						commit
						a9d9987d7c
					
				| 
						 | 
				
			
			@ -135,7 +135,7 @@ control_t test_initialize(const size_t call_count)
 | 
			
		|||
    TEST_ASSERT(rc >= ARM_DRIVER_OK);
 | 
			
		||||
    if (rc == ARM_DRIVER_OK) {
 | 
			
		||||
        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);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue