Make sure the the value is unsigned before we OR it into the uint64_t
or else the sign might be extended.