This project is read-only.

Invalid casting in hashInt32

Jul 1, 2012 at 11:55 PM

In the function hashInt32 the input is safe-cast to a Nullable<UInt32> with disasterous effects: no Int32 can be hashed as the input, "x", remains null.

The only alternative I can see is to box the "T" input via Convert.ToUInt32 or to make an Int32 specific filter to avoid boxing.