Re: MSVC warnings when compiling Lua as C++

Francisco Olarte <[email protected]> Thu, 30 Jul 2026 09:00:21 +0200
Newsgroups gmane.comp.lang.lua.general
Message-ID <CA+bJJby4a4NzpS-xej=XvaDzJ-=m-E8+Ee5M3dT6cCmywmNnMA@mail.gmail.com>
On Thu, 30 Jul 2026 at 08:20, 'Sainan' via lua-l <[email protected]> wrote:
> Ah, I actually didn't know that 'int' was ever not 32-bit. The only quirk I ever ran into was 'char' meaning 'unsigned char' on some ARM compilers.

Int was 16 bit for a lot of architectures. Or, is, int the few still
used. It is supposed to be the natural/faster one.
16<=short<=int<=long and, IIRC, 32<=long.

Changing int to 64 will lead to still more ram bloat ( and cache
usage, and speed loss ), probably kill many ( not too correct ) legacy
code, and some other problems. And anyway, people are used to
sizeof(void*) != sizeof(int) ( my people anyway, comming all the way
from 80[2]86 and its weird memory models ).

Francisco Olarte.

-- 
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/CA%2BbJJby4a4NzpS-xej%3DXvaDzJ-%3Dm-E8%2BEe5M3dT6cCmywmNnMA%40mail.gmail.com.