Skip to content

Commit

Permalink
Merge pull request zeromq#696 from neosmart/uap_marshal
Browse files Browse the repository at this point in the history
Use Marshal.SizeOf<T> on UAP too
  • Loading branch information
somdoron authored Aug 28, 2017
2 parents 06841f9 + 4b8a634 commit b1d54de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/NetMQ/Core/MonitorEvent.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ internal class MonitorEvent

static MonitorEvent()
{
#if NETSTANDARD1_3
#if NETSTANDARD1_3 || UAP
s_sizeOfIntPtr = Marshal.SizeOf<IntPtr>();
#else
s_sizeOfIntPtr = Marshal.SizeOf(typeof(IntPtr));
Expand Down

0 comments on commit b1d54de

Please sign in to comment.