fix `unsigned long` 32/64 bit conflict in creg