[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Please help: do lua sources assume a 32-bit int?
- From: Bogdan Marinescu <bogdan.marinescu@...>
- Date: Mon, 31 Jan 2005 10:34:43 +0200
Hello Ben,
> That code looks fine. It'll work with int sizes up to 32 bits, but it
> doesn't assume them. That part of the conditional handles ints bigger
> than the 16-bit maxint, and simply won't ever be executed on a
> 16-bit-int machine.
Yes, I noticed that, but at the same time it seemed to be an
indication of the fact that an int is regarded as a 32-bit value.
While this doesn't create any problems with the particular piece of
code I mentioned, it might not be the case in other places in the
code.
> IIRC, there are people using Lua on 16-bit embedded systems with no
> problems at all.
This is really reassuring. I was getting ready to sed the sources
a bit, but it is so much better to keep them as they are :)
Thank you,
Bogdan M.