[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Problem with lstrlib.c
- From: M Joonas Pihlaja <jpihlaja@...>
- Date: Mon, 22 Feb 2010 14:17:41 +0200 (EET)
On Mon, 22 Feb 2010, Scales, Neil wrote:
> On our system, ptrdiff_t is unsigned long. Therefore i>=0 is always
> true and the function never returns.
Your system is broken. Complain to the vendor with vigour and get
your money back! :)
ptrdiff_t is required to be a signed type in C99 (and very likely C89,
but I don't have a suitable reference to check right now.)
Joonas