pointfreeco / swift-perception

Observable tools, backported.
MIT License
574 stars 43 forks source link

Prevent overflow error in WithPerceptionTracking id #74

Closed heoblitz closed 6 months ago

heoblitz commented 6 months ago

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