Skip to content

Commit

Permalink
Fix type conversion error in stringhelpers.cpp
Browse files Browse the repository at this point in the history
Signed-off-by: Nathan Henderson <[email protected]>
  • Loading branch information
ThanHenderson committed Dec 11, 2024
1 parent 10564ae commit b972853
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion runtime/vm/stringhelpers.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}

Expand Down

0 comments on commit b972853

Please sign in to comment.