summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordotnet bot <dotnet-bot@dotnetfoundation.org>2017-12-14 17:28:39 -0800
committerAhson Khan <ahkha@microsoft.com>2017-12-14 17:28:39 -0800
commit264f8143ec5969216c0521bb6b76297c3c96598d (patch)
tree21c2582c6b1d125a91704d4962bfa10004849695 /src
parenta9bbada43c9133aac4ac135ce68940282faf6377 (diff)
downloadcoreclr-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.cs2
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
}