Squelch a warning by explicitly casting to throw away the upper 32 bits

of a result.

svn path=/trunk/; revision=51088
This commit is contained in:
Guy Harris 2013-08-01 20:46:49 +00:00
parent 7cdd97b089
commit 91382394d6
1 changed files with 2 additions and 2 deletions

View File

@ -1290,9 +1290,9 @@ add_manuf_name(const guint8 *addr, unsigned int mask, gchar *name)
manuf_hashtable = g_hash_table_new_full(g_int_hash, g_int_equal, g_free, g_free);
}
/* manuf needs only the 3 most significant octets of the ethernet address */
/* manuf needs only the 3 most significant octets of the ethernet address */
manuf_key = (int *)g_new(int, 1);
eth_as_int = (eth_as_int64>>24)&0xffffff;
eth_as_int = (int)(eth_as_int64>>24)&0xffffff;
*manuf_key = eth_as_int;
g_hash_table_insert(manuf_hashtable, manuf_key, g_strdup(name));