| author | |
| committer | |
| log | 0c7397b49f8c434cf1f714c08ab37d1429ab1be7 |
| tree | 7caf7a831e67d795ab2a0d6f0c0f015f5d8f4250 |
| parent | b336dda0765ba345253ed4b25113a5db4386c3f0 |
1 files changed, 2 insertions(+), 2 deletions(-)
lib/std/mem.zig+2-2| ... | ... | @@ -124,9 +124,9 @@ pub const Allocator = struct { |
| 124 | 124 | |
| 125 | 125 | fn AllocWithOptionsPayload(comptime Elem: type, comptime alignment: ?u29, comptime sentinel: ?Elem) type { |
| 126 | 126 | if (sentinel) |s| { |
| 127 | return [:s]align(alignment orelse @alignOf(T)) Elem; | |
| 127 | return [:s]align(alignment orelse @alignOf(Elem)) Elem; | |
| 128 | 128 | } else { |
| 129 | return []align(alignment orelse @alignOf(T)) Elem; | |
| 129 | return []align(alignment orelse @alignOf(Elem)) Elem; | |
| 130 | 130 | } |
| 131 | 131 | } |
| 132 | 132 |