Skip to content

Commit

Permalink
Prevent overflow error in WithPerceptionTracking id (#74)
Browse files Browse the repository at this point in the history
  • Loading branch information
heoblitz authored May 23, 2024
1 parent 9f6c437 commit a459ec9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/Perception/WithPerceptionTracking.swift
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ public struct WithPerceptionTracking<Content> {
return withPerceptionTracking {
self.instrumentedBody()
} onChange: { [_id = UncheckedSendable(self._id)] in
_id.value.wrappedValue += 1
_id.value.wrappedValue &+= 1
}
}
}
Expand Down

0 comments on commit a459ec9

Please sign in to comment.