changeset 9409:d9d44c9d7bf0

8137260: fix warning after "8046148: JEP 158: Unified JVM Logging" Reviewed-by: mlarsson, stuefe
author goetz
date Mon, 28 Sep 2015 12:57:47 +0200
parents 4edb0704e9f3
children 786145ca3cdc
files src/share/vm/logging/logFileOutput.cpp
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/vm/logging/logFileOutput.cpp	Fri Oct 02 16:48:31 2015 +0000
+++ b/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