Skip to content

Commit

Permalink
Fixed logic error.
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Sep 17, 2012
1 parent 93eb776 commit 9bceb1f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mojoshader_common.c
Expand Up @@ -727,7 +727,7 @@ int buffer_append(Buffer *buffer, const void *_data, size_t len)

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);
Expand Down

0 comments on commit 9bceb1f

Please sign in to comment.