|
> 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