From 5b619898c8ed87e91da6e02ecb6769e284e654eb Mon Sep 17 00:00:00 2001 From: Jeff Squyres Date: Wed, 20 Oct 2004 22:56:33 +0000 Subject: [PATCH] Fix some compiler warnings This commit was SVN r3250. --- src/class/ompi_hash_table.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/class/ompi_hash_table.c b/src/class/ompi_hash_table.c index a6fb53f4f3..ad5ca23f3d 100644 --- a/src/class/ompi_hash_table.c +++ b/src/class/ompi_hash_table.c @@ -514,7 +514,8 @@ ompi_hash_table_get_next_key_uint32(ompi_hash_table_t *ht, uint32_t *key, /* We found it. Save the values (use "next" to avoid some typecasting) */ - next = (ompi_uint32_hash_node_t *)*out_node = (void *) item; + *out_node = (void *) item; + next = (ompi_uint32_hash_node_t *) *out_node; *key = next->hn_key; *value = next->hn_value; @@ -585,7 +586,8 @@ ompi_hash_table_get_next_key_uint64(ompi_hash_table_t *ht, uint64_t *key, /* We found it. Save the values (use "next" to avoid some typecasting) */ - next = (ompi_uint64_hash_node_t *)*out_node = (void *) item; + *out_node = (void *) item; + next = (ompi_uint64_hash_node_t *) *out_node; *key = next->hn_key; *value = next->hn_value;