diff options
author | Sebastien Tandel <sebastien@tandel.be> | 2007-05-29 02:43:18 +0000 |
---|---|---|
committer | Sebastien Tandel <sebastien@tandel.be> | 2007-05-29 02:43:18 +0000 |
commit | 76729e5d0fdd675b3c070a33ab5bad7e0f8209da (patch) | |
tree | e9b3ac7fac6b834fccfe5f442a9c7d05d725ed54 /plugins | |
parent | d3d3f9bc6816b536661750f0f341f949350577d3 (diff) |
From David Howells :
Fix compilation failures when building wireshark-0.99.6-SVN-21916 on an
x86_64-unknown-linux-gnu target with gcc version 4.1.2 20070403 (Red Hat
4.1.2-8).
The failures fall into two categories:
(1) Casts between pointers and 32-bit integers without an intermediary cast
via 'long' or 'unsigned long'. This results in a compiler warning complaining
about casts between a pointer and an integer of a different size.
(2) Passing values to "%lld" or similar printf-style format options that the
compiler thinks are a different size. Such values need to be cast to 'long
long' or 'unsigned long long'.
svn path=/trunk/; revision=21975
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/h223/packet-h223.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/h223/packet-h223.c b/plugins/h223/packet-h223.c index 2f750259e2..3060be0989 100644 --- a/plugins/h223/packet-h223.c +++ b/plugins/h223/packet-h223.c @@ -189,7 +189,7 @@ static gint circuit_chain_equal(gconstpointer v, gconstpointer w) static guint circuit_chain_hash (gconstpointer v) { const circuit_chain_key *key = (const circuit_chain_key *)v; - guint hash_val = ((guint32)(key->call))^(((guint32)key->vc) << 16); + guint hash_val = ((guint32)(unsigned long)(key->call))^(((guint32)key->vc) << 16); return hash_val; } |