Also change from `unsigned int` to `uint` for consistency between function declarations and definitions.