> But since the hash-values are always 32 bit, won"t you then > get a warning when > casting long -> uint? :) Of course, any way of removing the > warning is fine. int hash = (int)((size_t)ptr + [whatever]); Let's not forget, longs are 4 bytes on 64 bit Windows. Kris Wong