| ... | @@ -454,7 +454,7 @@ pub fn reallocAdvanced( | ... | @@ -454,7 +454,7 @@ pub fn reallocAdvanced( |
| 454 | pub fn free(self: Allocator, memory: anytype) void { | 454 | pub fn free(self: Allocator, memory: anytype) void { |
| 455 | const slice_info = @typeInfo(@TypeOf(memory)).pointer; | 455 | const slice_info = @typeInfo(@TypeOf(memory)).pointer; |
| 456 | if (slice_info.size != .slice) { | 456 | if (slice_info.size != .slice) { |
| 457 | assert(slice_info.size == .one and @typeInfo(slice_info.child) == .array); | 457 | comptime assert(slice_info.size == .one and @typeInfo(slice_info.child) == .array); |
| 458 | } | 458 | } |
| 459 | const bytes: []u8 = @ptrCast(@constCast(mem.absorbSentinel(memory))); | 459 | const bytes: []u8 = @ptrCast(@constCast(mem.absorbSentinel(memory))); |
| 460 | if (bytes.len == 0) return; | 460 | if (bytes.len == 0) return; |