Skip to content

Commit

Permalink
Fixing build by casting IntPtr to nint. (dotnet/coreclr#15530)
Browse files Browse the repository at this point in the history
Signed-off-by: dotnet-bot <[email protected]>

Commit migrated from dotnet/coreclr@264f814
  • Loading branch information
dotnet-bot authored and ahsonkhan committed Dec 15, 2017
1 parent 283b885 commit 556ca62
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ public static ref T Add<T>(ref T source, IntPtr elementOffset)
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
}

Expand Down

0 comments on commit 556ca62

Please sign in to comment.