Skip to content

Commit

Permalink
Merge pull request #45 from jasperriscure/jasperriscure-patch-1
Browse files Browse the repository at this point in the history
Fix offset calculation
  • Loading branch information
TomHogervorst authored Oct 5, 2023
2 parents 4f6fa8d + 729076e commit d376289
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion trsfile/parametermap.py
Original file line number Diff line number Diff line change
Expand Up @@ -504,7 +504,7 @@ def matches(self, definitions: TraceParameterDefinitionMap) -> bool:
match = len(value) == definition.length
match &= ParameterType.from_class(type(value)) == definition.param_type
match &= definition.offset == offset
offset += len(value)
offset += len(value) * definition.param_type.byte_size
if not match:
break
match &= matched_keys == list(definitions.keys())
Expand Down

0 comments on commit d376289

Please sign in to comment.