Fix for a pointer truncation bug that is surfaced on Mac OS-X
Merge pull request #436 from noakesmichael/trunc-bug

Fix for a pointer truncation bug that is surfaced on Mac OS-X

This one line change addresses a long standing problem with managing Maps that has been exposed as intermittent failures on Mac OS X.  There was an operation on a MapElem included an explicit cast from uintptr_t to unsigned int hence losing the upper 32 bits of the address.  In this new version we simply preserve the uintptr_t.

My small concern is that I am unsure "why" the original author defined the return type to be a unsigned int in the first place.

a) This code has been tested against a repeatable failure case on Mac.

b) This code ran Lulesh for 2500 iterations; it had been failing approximately every 100 iterations or so.

c) Elliot has run this version on a program he has that used to fail intermittently.

d) Passed paratest.

e) Compiled on Mac/clang and Linux/gnu

Reviewed by Elliot