comparison of an unsigned with an integer gives a warning on windows.