mirror of
https://github.com/apple/swift-nio
synced 2026-11-27 05:04:22 +00:00
This only needs one `numericCast`.
Previous error:
```
C:\Users\fat\Developer\apple\swift-nio\Sources\NIOHTTP1\HTTPDecoder.swift:113:49: error: cannot convert value of type 'CUnsignedInt' (aka 'UInt32') to expected argument type 'Int32'
111 | statusCode: Int(opaque!.pointee.status_code),
112 | isUpgrade: opaque!.pointee.upgrade != 0,
113 | method: llhttp_method(rawValue: CUnsignedInt(opaque!.pointee.method)),
| `- error: cannot convert value of type 'CUnsignedInt' (aka 'UInt32') to expected argument type 'Int32'
114 | keepAliveState: opaque!.keepAliveState
115 | ) {
```
Co-authored-by: Cory Benfield <lukasa@apple.com>