diff --git a/include/proto/buffers.h b/include/proto/buffers.h index 66c6e6178..80f43ae4a 100644 --- a/include/proto/buffers.h +++ b/include/proto/buffers.h @@ -313,7 +313,7 @@ static inline void b_rew(struct buffer *b, unsigned int adv) b->o -= adv; if (!b->o && !b->pipe) b->flags |= BF_OUT_EMPTY; - b->p = b_ptr(b, -adv); + b->p = b_ptr(b, (int)-adv); } /* Return the amount of bytes that can be written into the buffer at once,