8137260: fix warning after "8046148: JEP 158: Unified JVM Logging"
authorgoetz
Mon, 28 Sep 2015 12:57:47 +0200
changeset 33120 63aca8d49f2a
parent 33119 29f4d03f3eab
child 33121 6580bf263d00
8137260: fix warning after "8046148: JEP 158: Unified JVM Logging" Reviewed-by: mlarsson, stuefe
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