Fixed sign mismatch warnings when compiling with Visual Studio 2010.