Re: Unaligned memory access
Andre Leiradella <[email protected]>
| Newsgroups | gmane.comp.lang.lua.general |
|---|---|
| Message-ID | <[email protected]> |
Em sábado, 14 de fevereiro de 2026 às 17:39:37 UTC, Roberto Ierusalimschy escreveu: Lua ensures that the memory in a userdata is aligned with values in ISO C. If you have other objects that require other alignments (such as 16-bit values), you can redefine the macro LUAI_MAXALIGN, in luaconf.h. Its standard definition is like this: #define LUAI_MAXALIGN lua_Number n; double u; void *s; lua_Integer i; long l Just toss these other objects in this list. -- Roberto Thanks, I wasn't aware of that macro. Andre -- You received this message because you are subscribed to the Google Groups "lua-l" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion visit https://groups.google.com/d/msgid/lua-l/ec6ce4dc-9d19-4724-95aa-a751b4388949n%40googlegroups.com.