Update pkg/etw/event.go

Co-Authored-By: kevpar <kevpar@users.noreply.github.com>
This commit is contained in:
John Starks
2018-12-18 18:20:29 -08:00
committed by GitHub
co-authored by kevpar
parent cd4b2fefe9
commit 98d07c865e
+1 -1
View File
@@ -76,7 +76,7 @@ func NewEventDescriptor() *EventDescriptor {
// EventDescriptor, and field metadata). Only the lower 24 bits of this value
// are relevant.
func (ed *EventDescriptor) Identity() uint32 {
return (uint32(ed.version) << 16) & uint32(ed.id)
return (uint32(ed.version) << 16) | uint32(ed.id)
}
// SetIdentity sets the identity of the event. If the identity is not 0, it