gtk: fix 32-bit build
authorPeter Wu <peter@lekensteyn.nl>
Wed, 31 Aug 2016 09:11:56 +0000 (11:11 +0200)
committerPeter Wu <peter@lekensteyn.nl>
Thu, 1 Sep 2016 08:20:52 +0000 (08:20 +0000)
commite3c3d7a4afeeb8bc0519717e6c85c038fb99170a
treed7a2784b29004778725b86504d6141ed6a7f0eda
parent717215df61f7fc4daf596c3cd07b1f4e19b38700
gtk: fix 32-bit build

32-bit glib before 2.31.2 expand GUINT_TO_POINTER(x) as (gpointer)x.
add explicit cast since curr_layer_num is 8 bits. Fixes
v1.99.10rc0-179-g1d7bcb2.

Storing a 64-bit integer into a 32-bit pointer makes the compiler
complain. Add explicit cast. Fixes v1.99.1rc0-76-ged0b19b.

Change-Id: I75fdf17882a0f5ddce7d3b3e74b1bf80ff6cd4ae
Reviewed-on: https://code.wireshark.org/review/17417
Petri-Dish: Peter Wu <peter@lekensteyn.nl>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Peter Wu <peter@lekensteyn.nl>
ui/gtk/decode_as_dlg.c
ui/gtk/packet_panes.c