Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions Sources/MultiArray/ArrayData.swift
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ extension Unit: ArrayData {

// Constant
extension Box: ArrayData {
public typealias Buffer = UnsafeMutablePointer<A>
public typealias Buffer = UnsafeMutablePointer<Element>

@inlinable
// @inline(__always)
Expand All @@ -142,14 +142,14 @@ extension Box: ArrayData {
// @inline(__always)
// @_alwaysEmitIntoClient
public static func reserve(capacity: Int, from context: inout UnsafeMutableRawPointer) -> Self.Buffer {
reserveCapacity(for: A.self, count: capacity, from: &context)
reserveCapacity(for: Element.self, count: capacity, from: &context)
}

@inlinable
// @inline(__always)
// @_alwaysEmitIntoClient
public static func rawSize(capacity: Int, from offset: Int) -> Int {
getRawSize(for: A.self, count: capacity, from: offset)
getRawSize(for: Element.self, count: capacity, from: offset)
}
}

Expand Down
6 changes: 3 additions & 3 deletions Sources/MultiArray/Generic.swift
Original file line number Diff line number Diff line change
Expand Up @@ -120,12 +120,12 @@ extension Unit: Generic {

// Constant: Encode boxed/constant data (i.e. don't do anything with it; will
// not be encoded into a struct-of-array representation)
public struct Box<A> {
public let unbox: A
public struct Box<Element> {
public let unbox: Element

@inlinable
@_alwaysEmitIntoClient
public init(_ value: A) {
public init(_ value: Element) {
self.unbox = value
}
}
Expand Down