We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2e0dd7b commit 3e2372bCopy full SHA for 3e2372b
stdlib/public/SDK/GLKit/GLKit.swift.gyb
@@ -34,7 +34,8 @@ vectorElementNames = [
34
@inline(__always)
35
public func _indexHomogeneousValue<TTT, T>(_ aggregate: UnsafePointer<TTT>,
36
_ index: Int) -> T {
37
- return UnsafePointer<T>(aggregate)[index]
+ return UnsafeRawPointer(aggregate).load(
38
+ fromByteOffset: index * strideof(T), as: T.self)
39
}
40
41
%{
0 commit comments