Making a function that returns an unsigned int return -1 is not a good idea.