evas: button_mask as unsigned, UB fixes.
authorBenjamin Jacobs <benj@spam.thsi.be>
Mon, 6 Jun 2016 23:33:54 +0000 (16:33 -0700)
committerCedric BAIL <cedric@osg.samsung.com>
Mon, 6 Jun 2016 23:34:05 +0000 (16:34 -0700)
commit32fd16dfc0fce3b736d3f959370859ba63cacbd5
tree824f59b666abd2f4ff2f85a86597b66f553934d5
parent2db02da4bd28866d16f48762a4c089421f5c914c
evas: button_mask as unsigned, UB fixes.

Summary:
* pointer.button is DATA32 which is unsigned, so this changes the
  definition of pointer_button_down_mask accordingly.

* Avoids UB in mask generation:
lib/evas/canvas/evas_events.c:1348:37: runtime error: left shift of 1 by 31 places cannot be represented in type 'int'

Subscribers: cedric, jpeg

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
src/lib/evas/canvas/evas_canvas.eo
src/lib/evas/canvas/evas_events.c
src/lib/evas/canvas/evas_main.c