Solved some unsigned/size_t problems