diff options
| author | Brian Anderson <banderson@mozilla.com> | 2012-04-01 20:54:30 -0700 |
|---|---|---|
| committer | Brian Anderson <banderson@mozilla.com> | 2012-04-01 20:54:30 -0700 |
| commit | 3232c52a61506124b0fd0079533cca4daf25e318 (patch) | |
| tree | 10fdee0ea5e858f27015a924588e3c5d8253455c /src/rt/circular_buffer.cpp | |
| parent | 6042aefeeb067c8077a9ae4245c8aeef89489103 (diff) | |
| download | rust-3232c52a61506124b0fd0079533cca4daf25e318.tar.gz rust-3232c52a61506124b0fd0079533cca4daf25e318.zip | |
rt: Assert things that are true
Diffstat (limited to 'src/rt/circular_buffer.cpp')
| -rw-r--r-- | src/rt/circular_buffer.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rt/circular_buffer.cpp b/src/rt/circular_buffer.cpp index 7c5d5848719..6753eb20f2e 100644 --- a/src/rt/circular_buffer.cpp +++ b/src/rt/circular_buffer.cpp @@ -24,7 +24,7 @@ circular_buffer::circular_buffer(rust_kernel *kernel, size_t unit_sz) : circular_buffer::~circular_buffer() { KLOG(kernel, mem, "~circular_buffer 0x%" PRIxPTR, this); assert(_buffer); - assert(_unread != 0 && "didn't expect bytes in the circular buffer"); + assert(_unread == 0 && "didn't expect bytes in the circular buffer"); kernel->free(_buffer); } |
