Fix type-punning warning when printing registers.