[PATCH] lua: work around 32-bit integers limitation in vlc.var
Pierre Ynard
linkfanel at yahoo.fr
Mon Nov 28 23:56:09 CET 2016
> Using `sizeof` is not really what you want, you should compare the
> *max*/*min* value of the two types in order to properly check if the
> value will fit.
> #if LUA_MININTEGER > INT64_MIN || LUA_MAXINTEGER < INT64_MAX
> if( val.i_int < LUA_MININTEGER || val.i_int > LUA_MAXINTEGER )
Lua provides no such macro or anything workable. As I said it would have
to be added with autoconf, but in my opinion that's not worth it.
--
Pierre Ynard
"Une âme dans un corps, c'est comme un dessin sur une feuille de papier."
More information about the vlc-devel
mailing list