--- old/src/hotspot/os/windows/os_windows.cpp 2018-03-01 14:53:54.116947287 -0500 +++ new/src/hotspot/os/windows/os_windows.cpp 2018-03-01 14:53:53.912936709 -0500 @@ -1518,7 +1518,7 @@ result = _vsnprintf(buf, len, fmt, args); // If output (including NUL terminator) is truncated, the buffer // won't be NUL terminated. Add the trailing NUL specified by C99. - if ((result < 0) || (result >= len)) { + if ((result < 0) || ((size_t)result >= len)) { buf[len - 1] = '\0'; } }