src/hotspot/share/memory/metaspace/rootChunkArea.hpp
branchstuefe-new-metaspace-branch
changeset 58099 5aeb07390c74
parent 58063 bdf136b8ae0e
child 59257 990b1fed3b47
--- a/src/hotspot/share/memory/metaspace/rootChunkArea.hpp	Wed Sep 11 17:36:28 2019 +0200
+++ b/src/hotspot/share/memory/metaspace/rootChunkArea.hpp	Thu Sep 12 07:57:00 2019 +0200
@@ -155,7 +155,7 @@
   // area this address falls into.
   int index_by_address(const MetaWord* p) const {
     DEBUG_ONLY(check_pointer(p);)
-    int idx = (p - base()) / chklvl::MAX_CHUNK_WORD_SIZE;
+    int idx = (int)((p - base()) / chklvl::MAX_CHUNK_WORD_SIZE);
     assert(idx >= 0 && idx < _num, "Sanity");
     return idx;
   }