From 6a81d528e89de73183d6b51c9c366c85ae594d9d Mon Sep 17 00:00:00 2001 From: Afshin Zafari Date: Tue, 17 Jan 2023 05:44:41 +0000 Subject: [PATCH] 8299213: Bad cast in GrowableArrayWithAllocator<>::grow Reviewed-by: kbarrett, jsjolen, jwaters --- src/hotspot/share/utilities/growableArray.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hotspot/share/utilities/growableArray.hpp b/src/hotspot/share/utilities/growableArray.hpp index 57ce68645aa..8895ebbc620 100644 --- a/src/hotspot/share/utilities/growableArray.hpp +++ b/src/hotspot/share/utilities/growableArray.hpp @@ -514,7 +514,7 @@ void GrowableArrayWithAllocator::expand_to(int new_capacity) { template void GrowableArrayWithAllocator::grow(int j) { // grow the array by increasing _capacity to the first power of two larger than the size we need - expand_to(next_power_of_2((uint32_t)j)); + expand_to(next_power_of_2(j)); } template