# HG changeset patch # User goetz # Date 1443437867 -7200 # Node ID 63aca8d49f2a9ff133a77e38d7f42b697ac54f1e # Parent 29f4d03f3eab496aeefd9c007a1e3b8bf58fb291 8137260: fix warning after "8046148: JEP 158: Unified JVM Logging" Reviewed-by: mlarsson, stuefe diff -r 29f4d03f3eab -r 63aca8d49f2a hotspot/src/share/vm/logging/logFileOutput.cpp --- a/hotspot/src/share/vm/logging/logFileOutput.cpp Fri Oct 02 16:48:31 2015 +0000 +++ b/hotspot/src/share/vm/logging/logFileOutput.cpp Mon Sep 28 12:57:47 2015 +0200 @@ -216,11 +216,11 @@ // At least one of the place-holders were found in the file_name const char* first = ""; - size_t first_pos = -1; + size_t first_pos = SIZE_MAX; size_t first_replace_len = 0; const char* second = ""; - size_t second_pos = -1; + size_t second_pos = SIZE_MAX; size_t second_replace_len = 0; // If we found a %p, then setup our variables accordingly