Skip to content

Commit a8ab4b6

Browse files
committed
Avoid warnings
1 parent 4c3d4c6 commit a8ab4b6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/lua-seri.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ blk_alloc(void) {
100100
static inline void
101101
wb_push(struct write_block *b, const void *buf, int sz) {
102102
const char * buffer = buf;
103-
if (b->ptr == BLOCK_SIZE) {
103+
if (b->ptr >= BLOCK_SIZE) {
104104
_again:
105105
b->current = b->current->next = blk_alloc();
106106
b->ptr = 0;

0 commit comments

Comments
 (0)