uint breaks windows build.  Maybe use unsigned int or size_t.