lua-users home
lua-l archive

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


Patrick Rapin <toupie300@gmail.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...

-MIles

-- 
Corporation, n. An ingenious device for obtaining individual profit without
individual responsibility.