Avoid warning about signed/unsigned comparison
Avoid alignment problems with reinterpret_cast