Re: Lua: compilation failure on TinyCC, probably cause: Lua non compliant usage of sizeof
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: Lua: compilation failure on TinyCC, probably cause: Lua non compliant usage of sizeof
- From: Andrew Gierth <andrew@...>
- Date: 2020年5月22日 15:48:50 +0100
>>>>> "Massimo" == Massimo Sala <massimo.sala.71@gmail.com> writes:
Massimo> I don't get the purpose of MAX_SIZET instead of the plain
Massimo> SIZE_MAX.
SIZE_MAX doesn't exist in c89 as far as I know.
Though the MAX_SIZET definition is unnecessarily complicated, it
suffices to use (size_t)-1, but this isn't a strictly valid expression
in preprocessor conditionals either because of the cast.
--
Andrew.