Prefer int to uint8_t when possible