resolve misc module float-equal warnings

Reviewed-by: Derek Foreman <derekf@osg.samsung.com>
This commit is contained in:
Mike Blumenkrantz 2017-01-06 12:56:22 -05:00
parent ec96143327
commit 0bbdd76469
6 changed files with 9 additions and 9 deletions

View File

@ -192,7 +192,7 @@ _basic_check_changed(E_Config_Dialog *cfd EINA_UNUSED,
(cfdata->show_low != notification_cfg->show_low) ||
(cfdata->show_normal != notification_cfg->show_normal) ||
(cfdata->show_critical != notification_cfg->show_critical) ||
(cfdata->timeout != notification_cfg->timeout) ||
(!EINA_DBL_CMP(cfdata->timeout, notification_cfg->timeout)) ||
(cfdata->corner != (int)notification_cfg->corner) ||
(cfdata->force_timeout != notification_cfg->force_timeout) ||
(cfdata->ignore_replacement != notification_cfg->ignore_replacement) ||

View File

@ -316,14 +316,14 @@ static int
_adv_check_changed(E_Config_Dialog *cfd EINA_UNUSED, E_Config_Dialog_Data *cfdata)
{
if ((int)pager_config->popup != cfdata->popup.show) return 1;
if (pager_config->popup_speed != cfdata->popup.speed) return 1;
if (!EINA_DBL_CMP(pager_config->popup_speed, cfdata->popup.speed)) return 1;
if ((int)pager_config->flip_desk != cfdata->flip_desk) return 1;
if ((int)pager_config->popup_urgent != cfdata->popup.urgent_show) return 1;
if ((int)pager_config->popup_urgent_stick != cfdata->popup.urgent_stick)
return 1;
if ((int)pager_config->popup_urgent_focus != cfdata->popup.urgent_focus)
return 1;
if (pager_config->popup_urgent_speed != cfdata->popup.urgent_speed)
if (!EINA_DBL_CMP(pager_config->popup_urgent_speed, cfdata->popup.urgent_speed))
return 1;
if ((int)pager_config->show_desk_names != cfdata->show_desk_names) return 1;
if (pager_config->popup_height != cfdata->popup.height) return 1;

View File

@ -324,7 +324,7 @@ static int
_adv_check_changed(E_Config_Dialog *cfd EINA_UNUSED, E_Config_Dialog_Data *cfdata)
{
if ((int)pager_config->popup != cfdata->popup.show) return 1;
if (pager_config->popup_speed != cfdata->popup.speed) return 1;
if (!EINA_DBL_CMP(pager_config->popup_speed, cfdata->popup.speed)) return 1;
if ((int)pager_config->flip_desk != cfdata->flip_desk) return 1;
if ((int)pager_config->disable_live_preview != !cfdata->live_preview) return 1;
if ((int)pager_config->popup_urgent != cfdata->popup.urgent_show) return 1;
@ -332,7 +332,7 @@ _adv_check_changed(E_Config_Dialog *cfd EINA_UNUSED, E_Config_Dialog_Data *cfdat
return 1;
if ((int)pager_config->popup_urgent_focus != cfdata->popup.urgent_focus)
return 1;
if (pager_config->popup_urgent_speed != cfdata->popup.urgent_speed)
if (!EINA_DBL_CMP(pager_config->popup_urgent_speed, cfdata->popup.urgent_speed))
return 1;
if ((int)pager_config->show_desk_names != cfdata->show_desk_names) return 1;
if (pager_config->popup_height != cfdata->popup.height) return 1;

View File

@ -135,7 +135,7 @@ _basic_check_changed(E_Config_Dialog *cfd EINA_UNUSED, E_Config_Dialog_Data *cfd
if ((cfdata->main.icon_size != e_config->syscon.main.icon_size) ||
(cfdata->secondary.icon_size != e_config->syscon.secondary.icon_size) ||
(cfdata->extra.icon_size != e_config->syscon.extra.icon_size) ||
(cfdata->timeout != e_config->syscon.timeout) ||
(!EINA_DBL_CMP(cfdata->timeout, e_config->syscon.timeout)) ||
(cfdata->do_input != e_config->syscon.do_input))
return 1;

View File

@ -502,7 +502,7 @@ tw_link_hide(E_Client *ec, const char *uri)
((tw_tmpfile && eina_streq(evas_object_data_get(tw_mod->pop, "uri"), tw_tmpfile)) ||
eina_streq(evas_object_data_get(tw_mod->pop, "uri"), uri)))
{
if (tw_config->mouse_out_delay)
if (EINA_DBL_NONZERO(tw_config->mouse_out_delay))
{
if (tw_hide_timer) ecore_timer_reset(tw_hide_timer);
else tw_hide_timer = ecore_timer_add(tw_config->mouse_out_delay, tw_hide, NULL);
@ -1122,7 +1122,7 @@ static void
tw_handler_hide(void)
{
if (tw_mod->force || tw_mod->sticky) return;
if (tw_config->mouse_out_delay)
if (EINA_DBL_NONZERO(tw_config->mouse_out_delay))
{
if (tw_hide_timer) ecore_timer_reset(tw_hide_timer);
else tw_hide_timer = ecore_timer_add(tw_config->mouse_out_delay, tw_hide, NULL);

View File

@ -405,7 +405,7 @@ _tiling_window_tree_node_resize_direction(Window_Tree *node,
}
/* If it's at the edge, try the grandpa of the parent. */
if (weight == 0.0)
if (!EINA_DBL_NONZERO(weight))
{
if (parent->parent && parent->parent->parent)
{