tdm_value value,
void *u_data)
{
- if ( ((int) u_data) < -100) {
+ if ( ((intptr_t) u_data) < -100) {
TDMOutput::handle_call++;
}
}
if (status == TDM_OUTPUT_CONN_STATUS_DISCONNECTED)
continue;
checked = true;
- for (int k = 0; k < 20; k++) {
+ for (intptr_t k = 0; k < 20; k++) {
ASSERT_TRUE(TDM_ERROR_NONE == tdm_output_add_change_handler(output,
tdm_output_change_handler_test_func,
(void *) (-101-k)));
if (status == TDM_OUTPUT_CONN_STATUS_DISCONNECTED)
continue;
checked = true;
- for (int k = 0; k < 20; k++) {
+ for (intptr_t k = 0; k < 20; k++) {
ASSERT_TRUE(TDM_ERROR_NONE == tdm_output_add_change_handler(output,
tdm_output_change_handler_test_func,
(void *) (-101-k)));
ASSERT_TRUE(TDM_ERROR_NONE == tdm_output_set_dpms(output, TDM_OUTPUT_DPMS_OFF));
ASSERT_GT(handle_call, 20);
handle_call = 0;
- for (int k = 0; k < 20; k++) {
+ for (intptr_t k = 0; k < 20; k++) {
tdm_output_remove_change_handler(output, tdm_output_change_handler_test_func, (void *) (-101-k));
}
ASSERT_TRUE(TDM_ERROR_NONE == tdm_output_set_dpms(output, TDM_OUTPUT_DPMS_ON));