Re: MSVC warnings when compiling Lua as C++
Sean Conner <[email protected]> Thu, 30 Jul 2026 15:40:29 -0400
| Newsgroups | gmane.comp.lang.lua.general |
|---|---|
| Message-ID | <[email protected]> |
It was thus said that the Great ppp vvv once stated: > > Maybe there would be some value in using int32_t, uint32_t, int64_t, etc. > when C99 is available. > > it is a good idea to use proper stdint types even without C99, > > and then "backport" it to C89 if needed in luaconf.h > > #if defined(LUA_USE_C89) > typedef char int8_t; This needs to be typedef signed char int8_t; It is implementation defined if a char is signed or unsigned. > typedef long long int64_t; > typedef unsigned long long uint64_t; C89 does not support the 'long long' type. -spc -- 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/20260730194029.GC6255%40brevard.conman.org.