Files
swift-nio/Sources
Franz Busch 6630cc6c6f Change unsafeDownCast to as! (#2802)
# Motivation

In Swift 5.10 the usage of `unsafeDownCast` can lead to a miss-compile which will result in bad runtime behaviour.

# Modification

This PR changes the `unsafeDownCast` to use a `as!` instead. This is safe and should result in the same performance when done with `ManagedBuffer` which is inlinable.

# Result

No more miss compiles in 5.10
2024-07-24 09:35:35 +01:00
..
2024-07-19 11:48:17 +02:00
2024-01-16 03:30:26 -08:00
2024-07-19 11:48:17 +02:00
2024-07-19 11:48:17 +02:00
2024-07-19 11:48:17 +02:00
2024-07-19 11:48:17 +02:00
2024-07-19 11:48:17 +02:00
2024-07-19 11:48:17 +02:00
2024-07-19 11:48:17 +02:00
2024-07-19 11:48:17 +02:00
2024-07-19 11:48:17 +02:00
2024-07-19 11:48:17 +02:00
2024-07-19 11:48:17 +02:00
2024-07-19 11:48:17 +02:00