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>
This commit is contained in:
parent
5db1352526
commit
a6fc5a3bae
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue