[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: lacking an unsigned MAX macro
- From: Jim <djvaios@...>
- Date: Tue, 14 May 2019 18:17:52 +0200
> it seems that a MAX macro for LUA_UNSIGNED is not #defined in luaconf.h
> so that i had to use ULLONG_MAX from <limits.h> directly instead.
you could also use
lua_Unsigned umax = ~ 0 ;
to determine this upper maximum.
this has the advantage that you do not need to know what C integer type
is actually used as Lua integer type.