Skip to content
Permalink
Browse files
Fixed logic error.
  • Loading branch information
icculus committed Sep 17, 2012
1 parent 93eb776 commit 9bceb1f26dc5e807b810192a03bb7fa39f1eb6ec
Showing with 1 addition and 1 deletion.
  1. +1 −1 mojoshader_common.c
@@ -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);

0 comments on commit 9bceb1f

Please sign in to comment.