diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2024-07-27 15:13:21 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2024-07-27 15:13:21 -0300 |
commit | f2206b2abe848f65956fa48da338c2bfac599e4a (patch) | |
tree | 94c1a856ec06846ad7485648ccafb429b5ca1b9b /llimits.h | |
parent | 0acd55898d0aaae8dbc14c8a1bc1e3bdffc8701b (diff) | |
download | lua-f2206b2abe848f65956fa48da338c2bfac599e4a.tar.gz lua-f2206b2abe848f65956fa48da338c2bfac599e4a.tar.bz2 lua-f2206b2abe848f65956fa48da338c2bfac599e4a.zip |
'-Wconversion' extended to all options of Lua numbers
Diffstat (limited to 'llimits.h')
-rw-r--r-- | llimits.h | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -163,13 +163,15 @@ typedef LUAI_UACINT l_uacInt; | |||
163 | */ | 163 | */ |
164 | #define ct_diff2sz(df) ((size_t)(df)) | 164 | #define ct_diff2sz(df) ((size_t)(df)) |
165 | 165 | ||
166 | /* ptrdiff_t to lua_Integer */ | ||
167 | #define ct_diff2S(df) cast_st2S(ct_diff2sz(df)) | ||
168 | |||
166 | /* | 169 | /* |
167 | ** Special type equivalent to '(void*)' for functions (to suppress some | 170 | ** Special type equivalent to '(void*)' for functions (to suppress some |
168 | ** warnings when converting function pointers) | 171 | ** warnings when converting function pointers) |
169 | */ | 172 | */ |
170 | typedef void (*voidf)(void); | 173 | typedef void (*voidf)(void); |
171 | 174 | ||
172 | |||
173 | /* | 175 | /* |
174 | ** Macro to convert pointer-to-void* to pointer-to-function. This cast | 176 | ** Macro to convert pointer-to-void* to pointer-to-function. This cast |
175 | ** is undefined according to ISO C, but POSIX assumes that it works. | 177 | ** is undefined according to ISO C, but POSIX assumes that it works. |