lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]

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.)