mirror of
https://github.com/luau-lang/luau.git
synced 2025-05-04 10:33:46 +01:00
Use uint8_t for lua_Type and TValue.tt
This commit is contained in:
parent
f1649a43cd
commit
892c891c66
2 changed files with 2 additions and 2 deletions
|
@ -58,7 +58,7 @@ typedef void* (*lua_Alloc)(lua_State* L, void* ud, void* ptr, size_t osize, size
|
||||||
* grep "ORDER TYPE"
|
* grep "ORDER TYPE"
|
||||||
*/
|
*/
|
||||||
// clang-format off
|
// clang-format off
|
||||||
enum lua_Type
|
enum lua_Type: uint8_t
|
||||||
{
|
{
|
||||||
LUA_TNIL = 0, /* must be 0 due to lua_isnoneornil */
|
LUA_TNIL = 0, /* must be 0 due to lua_isnoneornil */
|
||||||
LUA_TBOOLEAN = 1, /* must be 1 due to l_isfalse */
|
LUA_TBOOLEAN = 1, /* must be 1 due to l_isfalse */
|
||||||
|
|
|
@ -48,7 +48,7 @@ typedef struct lua_TValue
|
||||||
{
|
{
|
||||||
Value value;
|
Value value;
|
||||||
int extra;
|
int extra;
|
||||||
int tt;
|
uint8_t tt;
|
||||||
} TValue;
|
} TValue;
|
||||||
|
|
||||||
/* Macros to test type */
|
/* Macros to test type */
|
||||||
|
|
Loading…
Add table
Reference in a new issue