8137260: fix warning after "8046148: JEP 158: Unified JVM Logging"
Reviewed-by: mlarsson, stuefe
--- 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