aboutsummaryrefslogtreecommitdiffstats
path: root/epan/stream.c
diff options
context:
space:
mode:
authorAnders <anders.broman@ericsson.com>2015-06-04 16:12:04 +0200
committerAnders Broman <a.broman58@gmail.com>2015-06-04 15:10:15 +0000
commitfde38c099f062429dd501ab24efe4917f312b110 (patch)
tree36992fad222adaa308ed956fd174748b9a3ea30a /epan/stream.c
parent505d3038fca41575094a91eba93f5b928eb30349 (diff)
[MSVC 2015] Try to fix warinings turned errors.
Change-Id: Ife5aba55d6953fbd3874095f2e469a844ca8ef2e Reviewed-on: https://code.wireshark.org/review/8762 Petri-Dish: Anders Broman <a.broman58@gmail.com> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'epan/stream.c')
-rw-r--r--epan/stream.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/epan/stream.c b/epan/stream.c
index 03ab54a332..bb1bbc9c45 100644
--- a/epan/stream.c
+++ b/epan/stream.c
@@ -92,7 +92,7 @@ static guint stream_hash_func(gconstpointer k)
const stream_key_t *key = (const stream_key_t *)k;
/* is_circuit is redundant to the circuit/conversation pointer */
- return ((guint)(unsigned long)key->circ.circuit) ^ key->p2p_dir;
+ return (GPOINTER_TO_UINT(key->circ.circuit)) ^ key->p2p_dir;
}
/* compare func */
@@ -238,7 +238,7 @@ typedef struct fragment_key {
static guint fragment_hash_func(gconstpointer k)
{
const fragment_key_t *key = (const fragment_key_t *)k;
- return ((guint)(unsigned long)key->stream) + ((guint)key -> framenum) + ((guint)key->offset);
+ return (GPOINTER_TO_UINT(key->stream)) + ((guint)key -> framenum) + ((guint)key->offset);
}
/* compare func */