Replaced uin8_t by uint_least8_t for portability.