| ... | ... | @@ -454,7 +454,7 @@ pub fn reallocAdvanced( |
| 454 | 454 | pub fn free(self: Allocator, memory: anytype) void { |
| 455 | 455 | const slice_info = @typeInfo(@TypeOf(memory)).pointer; |
| 456 | 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 | 459 | const bytes: []u8 = @ptrCast(@constCast(mem.absorbSentinel(memory))); |
| 460 | 460 | if (bytes.len == 0) return; |