swift-perception icon indicating copy to clipboard operation
swift-perception copied to clipboard

Prevent overflow error in WithPerceptionTracking id

Open heoblitz opened this issue 1 year ago • 0 comments

Using &+= operator to prevent int overflow errors, the same as _PerceptionRegistrar's generateId.

https://github.com/pointfreeco/swift-perception/blob/main/Sources/Perception/Internal/_PerceptionRegistrar.swift#L111

heoblitz avatar May 23 '24 13:05 heoblitz