Fixed a problem comparing int to size_t

Found this simply by compiling with clang++

Why is this not standard yet?