Re: [PATCH] lib/vasnprintf.c: Add information to make integer comparison logical

2018-09-30 Thread Bruno Haible
Hi Bjarni, Haven't heard back from you in a week. So I'm applying this patch. 2018-09-30 Bruno Haible vasnprintf: Avoid warnings from GCC's -Wsign-compare. Reported by Bjarni Ingi Gislason in .

Re: [PATCH] lib/vasnprintf.c: Add information to make integer comparison logical

2018-09-22 Thread Bruno Haible
Bjarni Ingi Gislason wrote: > A question (comment) from the compiler (gcc 8.2): > > ../lib/vasnprintf.c:5107:35: warning: comparison of integer expressions of > different signedness: 'int' and 'size_t' {aka 'long unsigned int'} > [-Wsign-compare] > if (count < maxlen >

[PATCH] lib/vasnprintf.c: Add information to make integer comparison logical

2018-09-22 Thread Bjarni Ingi Gislason
A question (comment) from the compiler (gcc 8.2): ../lib/vasnprintf.c:5107:35: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'long unsigned int'} [-Wsign-compare] if (count < maxlen ^ Th