Merge pull request #549 from AZero13/ok

first should get the Initialized elements
This commit is contained in:
Karoy Lorentey authored and GitHub committed 2025-12-17 16:16:39 -08:00
commit ec3fef1899
1 file changed
+2 -1
+2 -1
View File
@@ -64,7 +64,8 @@ extension InputSpan where Element: ~Copyable {
@unsafe
internal func _first() -> UnsafeMutableRawPointer {
// NOTE: `_pointer` must be known to be not-nil.
unsafe _start().advanced(by: _count &* MemoryLayout<Element>.stride)
let offset = (capacity &- _count) &* MemoryLayout<Element>.stride
return unsafe _start().advanced(by: offset)
}
@unsafe