efl_ui/container: remove erroneous negative value checks for uint params
authorMike Blumenkrantz <zmike@samsung.com>
Tue, 8 Oct 2019 14:49:02 +0000 (16:49 +0200)
committerJongmin Lee <jm105.lee@samsung.com>
Wed, 9 Oct 2019 21:07:54 +0000 (06:07 +0900)
commitb7c06fa5239f058fc07556a7c5cb1e122b637622
tree428f756b22747941d969ab05bb99f26b04e5ef13
parent299d0383f276ba3376f6feb7c6eef12b09efaedb
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
src/lib/elementary/efl_ui_box.c
src/lib/elementary/efl_ui_table.c