Use uint64_t instead of unsigned. This guarantees that the size of the type is the same across all platforms.