[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Possible bug in Lua 5.0a
- From: Lavergne Thomas <thomas.lavergne@...>
- Date: Thu, 22 Aug 2002 00:31:16 +0200
Hi,
I've played a little with new lua5.0a and found a possible bug if you
compile lua and host application with different compiler :
lua_Hookevent was defined as an enum, but ANSI-C does not specify a size
for enum, some compiler use the most adapted size (a byte in this case)
and some other always use an int so when you pass it as an argument of a
function or in the lua_debug struct we can have bug.
I known this was not a bug of lua but a lack of the ANSI-C spec but I
think it could be best to use #define instead of enum to avoid problems.
Tom
--
Thomas Lavergne "Le vrai rêveur est celui qui rêve
de l'impossible." (Elsa Triolet)
thomas.lavergne@laposte.net
d-12@laposte.net ICQ:#137121910 http://assoc.wanadoo.fr/thallium/