[PATCH 2/5] Fix interface to consistently use unsigned int