[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Caveat with lua_pushlightuserdata(L, (void *)&key)
- From: David Given <dg@...>
- Date: Tue, 27 Jun 2006 23:39:58 +0100
Mike Pall wrote:
[...]
> The bug might be just in the specific (heavily-patched) GCC 4.0
> Apple is using. Or only in combination with the Mach linker.
I did run into an OSX bug in the past where it wasn't zero-initialising global
variables:
#include <stdio.h>
int foo;
int main(int argc, char* argv[])
{
printf("%d\n", foo);
}
This must return '0' (the standard requires it), but the Apple wasn't.
Explicitly initialising 'foo' with 'int foo = 0;' worked, but that shouldn't
be necessary.
This was back in the days of OSX on PowerPC; and I don't know whether the
bug's been fixed or not by now.
--
+- David Given --McQ-+ "Gaping from its single obling socket was
| dg@cowlark.com | scintillating, many fauceted scarlet emerald..."
| (dg@tao-group.com) | --- Jim Theis, _The Eye of Argon_ (spelling
+- www.cowlark.com --+ original)
Attachment:
signature.asc
Description: OpenPGP digital signature
- References:
- Caveat with lua_pushlightuserdata(L, (void *)&key), Mike Pall
- Re: Caveat with lua_pushlightuserdata(L, (void *)&key), Julien Cugnière
- Re: Caveat with lua_pushlightuserdata(L, (void *)&key), Andreas Stenius
- Re: Caveat with lua_pushlightuserdata(L, (void *)&key), David Jones
- Re: Caveat with lua_pushlightuserdata(L, (void *)&key), Glenn Maynard
- Re: Caveat with lua_pushlightuserdata(L, (void *)&key), Roberto Ierusalimschy
- Re: Caveat with lua_pushlightuserdata(L, (void *)&key), Mike Pall