File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -112,7 +112,7 @@ void lp_ticker_info_test()
112
112
TEST_ASSERT (p_ticker_info->bits >= 12 );
113
113
114
114
#ifdef LP_TICKER_PERIOD_NUM
115
- TEST_ASSERT_UINT32_WITHIN (1 , 1000000 * LP_TICKER_PERIOD_DEN / LP_TICKER_PERIOD_NUM, p_ticker_info->frequency );
115
+ TEST_ASSERT_UINT32_WITHIN (1 , ( uint64_t ) 1000000 * LP_TICKER_PERIOD_DEN / LP_TICKER_PERIOD_NUM, p_ticker_info->frequency );
116
116
TEST_ASSERT_EQUAL_UINT32 (LP_TICKER_MASK, ((uint64_t )1 << p_ticker_info->bits ) - 1 );
117
117
#endif
118
118
Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ void us_ticker_info_test()
47
47
TEST_ASSERT (p_ticker_info->bits >= 16 );
48
48
49
49
#ifdef US_TICKER_PERIOD_NUM
50
- TEST_ASSERT_UINT32_WITHIN (1 , 1000000 * US_TICKER_PERIOD_DEN / US_TICKER_PERIOD_NUM, p_ticker_info->frequency );
50
+ TEST_ASSERT_UINT32_WITHIN (1 , ( uint64_t ) 1000000 * US_TICKER_PERIOD_DEN / US_TICKER_PERIOD_NUM, p_ticker_info->frequency );
51
51
TEST_ASSERT_EQUAL_UINT32 (US_TICKER_MASK, ((uint64_t )1 << p_ticker_info->bits ) - 1 );
52
52
#endif
53
53
}
You can’t perform that action at this time.
0 commit comments