Skip to content

Commit 3232c52

Browse files
committed
rt: Assert things that are true
1 parent 6042aef commit 3232c52

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/rt/circular_buffer.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ circular_buffer::circular_buffer(rust_kernel *kernel, size_t unit_sz) :
2424
circular_buffer::~circular_buffer() {
2525
KLOG(kernel, mem, "~circular_buffer 0x%" PRIxPTR, this);
2626
assert(_buffer);
27-
assert(_unread != 0 && "didn't expect bytes in the circular buffer");
27+
assert(_unread == 0 && "didn't expect bytes in the circular buffer");
2828

2929
kernel->free(_buffer);
3030
}

0 commit comments

Comments
 (0)