aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-lbm.h
diff options
context:
space:
mode:
authorEvan Huus <eapache@gmail.com>2014-08-03 12:29:36 -0400
committerEvan Huus <eapache@gmail.com>2014-08-03 16:32:53 +0000
commita6fc5a3baebeaf69625056546add2b6d329ae9f7 (patch)
tree5c459c73300f4536b9a43f4a5ed3b3d20f86bac8 /epan/dissectors/packet-lbm.h
parent5db1352526e71727091ff0e1c0e97821eec4e4cb (diff)
Cast G_STRUCT_OFFSET to gint to fix mac buildbot
glib casts the result to glong for no apparent reason (has anybody ever defined a structure of more than 2^32 bytes?) which was causing a whole bunch of useless 64-to-32-bit conversion warnings. Change-Id: I70305fb3b03332bb876023acdd107eb1e95fea27 Reviewed-on: https://code.wireshark.org/review/3383 Reviewed-by: Evan Huus <eapache@gmail.com>
Diffstat (limited to 'epan/dissectors/packet-lbm.h')
-rw-r--r--epan/dissectors/packet-lbm.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/dissectors/packet-lbm.h b/epan/dissectors/packet-lbm.h
index 74b221faae..11d67d0eaf 100644
--- a/epan/dissectors/packet-lbm.h
+++ b/epan/dissectors/packet-lbm.h
@@ -98,7 +98,7 @@ typedef guint16 lbm_uint16_t;
typedef guint32 lbm_uint32_t;
typedef guint64 lbm_uint64_t;
#define SIZEOF(TYPE, MEMBER) (gint)(sizeof(((TYPE *)0)->MEMBER))
-#define OFFSETOF(TYPE, MEMBER) G_STRUCT_OFFSET(TYPE, MEMBER)
+#define OFFSETOF(TYPE, MEMBER) ((gint)G_STRUCT_OFFSET(TYPE, MEMBER))
#define STRINGIZE(a) #a
#define MAKESTRING(a) STRINGIZE(a)
#define LBM_OTID_BLOCK_SZ 32