Skip to content

Commit

Permalink
fix nativeaot compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
EgorBo committed Oct 5, 2022
1 parent e0737c0 commit aadadc6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/coreclr/tools/Common/JitInterface/CorInfoImpl.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1840,7 +1840,7 @@ private int objectToString(void* handle, byte* buffer, int bufferSize)
// NOTE: this function is used for pinned/frozen handles
// it doesn't need to null-terminate the string

ReadOnlySpan<char> objStr = HandleToObject((IntPtr)handle).ToString();
ReadOnlySpan<char> objStr = HandleToObject(handle).ToString();
var bufferSpan = new Span<byte>(buffer, bufferSize);
Utf8.FromUtf16(objStr, bufferSpan, out _, out int written);
return written;
Expand Down

0 comments on commit aadadc6

Please sign in to comment.