hash: Prevent warnings about strict aliasing rules.
authorJesse Gross <jesse@nicira.com>
Wed, 20 Jan 2010 18:50:48 +0000 (13:50 -0500)
committerJesse Gross <jesse@nicira.com>
Wed, 20 Jan 2010 19:02:50 +0000 (14:02 -0500)
commit91f227cad7cd6a1a36c8cac75e56d1308821fe34
tree18e1e7a4ab6292c740809c38808fc369fd2721a9
parent8f30d09ab053824b0ee7297fc8475fc1405beb93
hash: Prevent warnings about strict aliasing rules.

Some versions of GCC complain about violations of strict aliasing
rules due to a cast between different pointer types.  This avoids
any aliasing by copying the value first.
lib/hash.h