HomePhabricator

efl_ui/container: remove erroneous negative value checks for uint params

Authored by zmike on Oct 8 2019, 7:49 AM.

Description

efl_ui/container: remove erroneous negative value checks for uint params

Summary:
../src/lib/elementary/efl_ui_box.c: In function ‘_efl_ui_box_efl_gfx_arrangement_content_padding_set’:
../src/lib/elementary/efl_ui_box.c:411:10: warning: comparison of unsigned expression < 0 is always false [-Wtype-limit ]

411 |    if (h < 0) h = 0;
    |          ^

../src/lib/elementary/efl_ui_box.c:412:10: warning: comparison of unsigned expression < 0 is always false [-Wtype-limit ]

412 |    if (v < 0) v = 0;
    |          ^

../src/lib/elementary/efl_ui_table.c: In function ‘_efl_ui_table_efl_gfx_arrangement_content_padding_set’:
../src/lib/elementary/efl_ui_table.c:272:10: warning: comparison of unsigned expression < 0 is always false [-Wtype-limits]

272 |    if (h < 0) h = 0;
    |          ^

../src/lib/elementary/efl_ui_table.c:273:10: warning: comparison of unsigned expression < 0 is always false [-Wtype-limits]

273 |    if (v < 0) v = 0;
    |          ^

Reviewers: segfaultxavi

Reviewed By: segfaultxavi

Subscribers: cedric, reviewers, committers

Tags: efl

Differential Revision: https://phab.enlightenment.org/D10304