From b972853d11149653c946d26c198787e0bcd7dc03 Mon Sep 17 00:00:00 2001 From: Nathan Henderson Date: Wed, 11 Dec 2024 08:47:23 -0500 Subject: [PATCH] Fix type conversion error in stringhelpers.cpp Signed-off-by: Nathan Henderson --- runtime/vm/stringhelpers.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runtime/vm/stringhelpers.cpp b/runtime/vm/stringhelpers.cpp index 7e123377c6e..ca2696d3626 100644 --- a/runtime/vm/stringhelpers.cpp +++ b/runtime/vm/stringhelpers.cpp @@ -480,7 +480,7 @@ copyJ9UTF8WithMemAlloc(J9VMThread *vmThread, J9UTF8 *string, UDATA stringFlags, if (J9_ARE_ALL_BITS_SET(stringFlags, J9_STR_NULL_TERMINATE_RESULT)) { resultString[totalStringLength] = '\0'; } - J9UTF8_SET_LENGTH(result, totalStringLength); + J9UTF8_SET_LENGTH(result, (U_16)totalStringLength); } }