OpenJDK / jdk / jdk12
changeset 49317:d17b6a80ae08
8198906: JDK-8196882 breaks VS2013 Win32 builds
Summary: Add cast to eliminate warning.
Reviewed-by: dholmes, stuefe
author | kbarrett |
---|---|
date | Fri, 02 Mar 2018 03:14:49 -0500 |
parents | c3ec048aad63 |
children | f5954447b0bd |
files | src/hotspot/os/windows/os_windows.cpp |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/hotspot/os/windows/os_windows.cpp Thu Mar 01 16:35:36 2018 -0500 +++ b/src/hotspot/os/windows/os_windows.cpp Fri Mar 02 03:14:49 2018 -0500 @@ -1537,7 +1537,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'; } }