[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: [ANN] Lua 5.2.0 (rc4) now available
- From: Miles Bader <miles@...>
- Date: Thu, 01 Dec 2011 17:47:33 +0900
Patrick Rapin <email@example.com> writes:
> RC4 compiles cleanly (without warnings) on most of my C compilers.
> Except with IAR Embedded Workbench 6.0 for ARM.
> It looks like NULL is defined as 0, and not (void*)0.
> This produces a bunch of errors like that:
> Error[Pe042]: operand types are incompatible ("void *" and "int") llex.c 59
> All errors initiate at lmem.h, line 20. Instead of NULL, you should
> write (void*)0.
"0" should be perfectly acceptable in a pointer context; this sounds
like a bug with the C compiler...
Corporation, n. An ingenious device for obtaining individual profit without