Replaced "reinterpret_casts" (which will surely fail on some architectures) with hard-coded constants