mojoshader_common.c
changeset 1113 570cae807859
parent 1111 7530b37979b8
child 1116 0ef3d106dab9
--- 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);