Skip to content

Commit e41560b

Browse files
committed
Address code review feedback.
1 parent 19055cb commit e41560b

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/TraceEvent/DynamicTraceEventParser.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -533,9 +533,8 @@ private object GetPayloadValueAt(ref PayloadFetch payloadFetch, int offset, int
533533
// input=Array of ulong
534534
// output=Array of IntPtr
535535
// This is common for bitmasks. To address this, we special case it here.
536-
if (value is ulong && elementType == typeof(IntPtr))
536+
if (elementType == typeof(IntPtr) && value is ulong uintVal)
537537
{
538-
ulong uintVal = (ulong)value;
539538
value = new IntPtr(unchecked((long)uintVal));
540539
}
541540
else if (value.GetType() != elementType)

0 commit comments

Comments
 (0)