fix compiler warning, use longs for hashes