ipv6: fix build with old 32-bit glib headers (master only)

Introduced with v2.3.0rc0-112-gdcb7b71, nxt is only a guint8* which
fails on 32-bit glib before 2.31.2.

Change-Id: Ide1816a971fa213f5669a7fa71bc111d5b1cc921
Reviewed-on: https://code.wireshark.org/review/17418
Petri-Dish: Peter Wu <peter@lekensteyn.nl>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Peter Wu <peter@lekensteyn.nl>
This commit is contained in:
Peter Wu 2016-08-31 11:31:54 +02:00
parent 71f867490d
commit 717ca58264
1 changed files with 1 additions and 1 deletions

View File

@ -378,7 +378,7 @@ static gpointer ipv6_value(packet_info *pinfo)
if (nxt == NULL) {
return GUINT_TO_POINTER(255); /* Reserved IP Protocol */
}
return GUINT_TO_POINTER(*nxt);
return GUINT_TO_POINTER((guint)*nxt);
}
static void ipv6_prompt(packet_info *pinfo, gchar *result)