diff options
author | dotnet bot <dotnet-bot@dotnetfoundation.org> | 2017-12-14 17:28:39 -0800 |
---|---|---|
committer | Ahson Khan <ahkha@microsoft.com> | 2017-12-14 17:28:39 -0800 |
commit | 264f8143ec5969216c0521bb6b76297c3c96598d (patch) | |
tree | 21c2582c6b1d125a91704d4962bfa10004849695 /src | |
parent | a9bbada43c9133aac4ac135ce68940282faf6377 (diff) | |
download | coreclr-264f8143ec5969216c0521bb6b76297c3c96598d.tar.gz coreclr-264f8143ec5969216c0521bb6b76297c3c96598d.tar.bz2 coreclr-264f8143ec5969216c0521bb6b76297c3c96598d.zip |
Fixing build by casting IntPtr to nint. (#15530)
Signed-off-by: dotnet-bot <dotnet-bot@microsoft.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/mscorlib/shared/Internal/Runtime/CompilerServices/Unsafe.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mscorlib/shared/Internal/Runtime/CompilerServices/Unsafe.cs b/src/mscorlib/shared/Internal/Runtime/CompilerServices/Unsafe.cs index 1aae1627e5..cd3dd052a2 100644 --- a/src/mscorlib/shared/Internal/Runtime/CompilerServices/Unsafe.cs +++ b/src/mscorlib/shared/Internal/Runtime/CompilerServices/Unsafe.cs @@ -121,7 +121,7 @@ namespace Internal.Runtime.CompilerServices typeof(T).ToString(); // Type token used by the actual method body throw new PlatformNotSupportedException(); #else - return ref AddByteOffset(ref source, (IntPtr)(elementOffset * (nint)SizeOf<T>())); + return ref AddByteOffset(ref source, (IntPtr)((nint)elementOffset * (nint)SizeOf<T>())); #endif } |