Fix full hashing on 64-bit platforms