Fixed logic error.
authorRyan C. Gordon <icculus@icculus.org>
Mon, 17 Sep 2012 12:37:22 -0400
changeset 1113 570cae807859
parent 1112 ef76d5efedcc
child 1114 db4aefd4c209
Fixed logic error.
mojoshader_common.c
--- a/mojoshader_common.c	Mon Sep 17 12:37:09 2012 -0400
+++ b/mojoshader_common.c	Mon Sep 17 12:37:22 2012 -0400
@@ -727,7 +727,7 @@
 
     if (len > 0)
     {
-        assert((!buffer->tail) || (buffer->tail->bytes == blocksize));
+        assert((!buffer->tail) || (buffer->tail->bytes >= blocksize));
         const size_t bytecount = len > blocksize ? len : blocksize;
         const size_t malloc_len = sizeof (BufferBlock) + bytecount;
         BufferBlock *item = (BufferBlock *) buffer->m(malloc_len, buffer->d);