< prev index next >

src/hotspot/os/windows/os_windows.cpp

Print this page
rev 49101 : [mq]: fix

@@ -1516,11 +1516,11 @@
   int result = -1;
   if (len > 0) {
     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';
     }
   }
   if (result < 0) {
     result = _vscprintf(fmt, args);
< prev index next >