lua-users home
lua-l archive

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


>     union L_Umaxalign { double d; void *s; long l; };
> 
> should probably be:
> 
>     union L_Umaxalign { lua_Number d; void *s; long l; };

This double is to ensure proper alignment for userdata and strings 
*outside* Lua. (Notice that strings will always be aligned, too.)

-- Roberto