Skip to content

Commit

Permalink
Merge pull request #41 from tbeadle/fix-type-conversion
Browse files Browse the repository at this point in the history
Fix bug in type conversion.
  • Loading branch information
abergl authored Mar 23, 2023
2 parents dd6a75d + 807eb25 commit d3be911
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion etw/etw.py
Original file line number Diff line number Diff line change
Expand Up @@ -622,7 +622,7 @@ def _unpackSimpleType(self, record, info, event_property):

data = formatted_data.value
# Convert the formatted data if necessary
if out_type in tdh.TDH_CONVERTER_LOOKUP and type(data) == tdh.TDH_CONVERTER_LOOKUP[out_type]:
if out_type in tdh.TDH_CONVERTER_LOOKUP and type(data) != tdh.TDH_CONVERTER_LOOKUP[out_type]:
data = tdh.TDH_CONVERTER_LOOKUP[out_type](data)

return {name_field: data}
Expand Down

0 comments on commit d3be911

Please sign in to comment.