gtk: fix 32-bit build
[metze/wireshark/wip.git] / ui / gtk / decode_as_dlg.c
index 382b38676aeaf4851625ae0d185b45189a2ed45e..c38f686cd164593214763bf9dca961d351fa7617 100644 (file)
@@ -1224,7 +1224,7 @@ decode_add_simple_page (decode_as_t *entry)
     if (entry->num_items == 1)
     {
         g_object_set_data(G_OBJECT(page), E_PAGE_VALUE, entry->values[0].build_values[0](&cfile.edt->pi));
-        g_object_set_data(G_OBJECT(page), E_PAGE_CURR_LAYER_NUM, GUINT_TO_POINTER(cfile.edt->pi.curr_layer_num));
+        g_object_set_data(G_OBJECT(page), E_PAGE_CURR_LAYER_NUM, GUINT_TO_POINTER((guint)cfile.edt->pi.curr_layer_num));
 
         /* Always enabled */
         entry->values->label_func(&cfile.edt->pi, prompt);