Skip to content

Commit

Permalink
Merge pull request eclipse-openj9#20813 from ThanHenderson/fixcast
Browse files Browse the repository at this point in the history
Fix type conversion error in stringhelpers.cpp
  • Loading branch information
pshipton authored Dec 11, 2024
2 parents 10564ae + b972853 commit 7dc238c
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 7dc238c

Please sign in to comment.