diff --git a/sys/kern/subr_sbuf.c b/sys/kern/subr_sbuf.c index 6c910e6ddaee..5892d894781e 100644 --- a/sys/kern/subr_sbuf.c +++ b/sys/kern/subr_sbuf.c @@ -115,7 +115,7 @@ sbuf_extendsize(int size) newsize = SBUF_MINEXTENDSIZE; while (newsize < size) { - if (newsize < SBUF_MAXEXTENDSIZE) + if (newsize < (int)SBUF_MAXEXTENDSIZE) newsize *= 2; else newsize += SBUF_MAXEXTENDINCR;