lua-users home
lua-l archive

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]


>>>>> "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.

AltStyle によって変換されたページ (->オリジナル) /