Use uint8_t for lua_Type and TValue.tt

This commit is contained in:
LoganDark 2021-11-08 11:06:53 -08:00
parent f1649a43cd
commit 892c891c66
No known key found for this signature in database
GPG key ID: B8C37CEDE1AC60EA
2 changed files with 2 additions and 2 deletions

View file

@ -58,7 +58,7 @@ typedef void* (*lua_Alloc)(lua_State* L, void* ud, void* ptr, size_t osize, size
* grep "ORDER TYPE"
*/
// clang-format off
enum lua_Type
enum lua_Type: uint8_t
{
LUA_TNIL = 0, /* must be 0 due to lua_isnoneornil */
LUA_TBOOLEAN = 1, /* must be 1 due to l_isfalse */

View file

@ -48,7 +48,7 @@ typedef struct lua_TValue
{
Value value;
int extra;
int tt;
uint8_t tt;
} TValue;
/* Macros to test type */