| ... | @@ -124,9 +124,9 @@ pub const Allocator = struct { | ... | @@ -124,9 +124,9 @@ pub const Allocator = struct { |
| 124 | | 124 | |
| 125 | fn AllocWithOptionsPayload(comptime Elem: type, comptime alignment: ?u29, comptime sentinel: ?Elem) type { | 125 | fn AllocWithOptionsPayload(comptime Elem: type, comptime alignment: ?u29, comptime sentinel: ?Elem) type { |
| 126 | if (sentinel) |s| { | 126 | if (sentinel) |s| { |
| 127 | return [:s]align(alignment orelse @alignOf(T)) Elem; | 127 | return [:s]align(alignment orelse @alignOf(Elem)) Elem; |
| 128 | } else { | 128 | } else { |
| 129 | return []align(alignment orelse @alignOf(T)) Elem; | 129 | return []align(alignment orelse @alignOf(Elem)) Elem; |
| 130 | } | 130 | } |
| 131 | } | 131 | } |
| 132 | | 132 | |