eris: upgrade flagbits to 16 bits
This commit is contained in:
@@ -905,8 +905,8 @@ static void
|
||||
p_literaltable(Info *info) { /* ... tbl */
|
||||
eris_checkstack(info->L, 3);
|
||||
|
||||
unsigned char bits = lua_getflagbits(info->L, -1);
|
||||
WRITE_VALUE(bits, uint8_t);
|
||||
uint16_t bits = lua_getflagbits(info->L, -1);
|
||||
WRITE_VALUE(bits, uint16_t);
|
||||
|
||||
/* Persist all key / value pairs. */
|
||||
lua_pushnil(info->L); /* ... tbl nil */
|
||||
@@ -946,7 +946,7 @@ u_literaltable(Info *info) { /* ... */
|
||||
eris_checkstack(info->L, 3);
|
||||
|
||||
lua_newtable(info->L); /* ... tbl */
|
||||
unsigned char bits = READ_VALUE(uint8_t);
|
||||
uint16_t bits = READ_VALUE(uint16_t);
|
||||
lua_setflagbits(info->L, -1, bits);
|
||||
|
||||
/* Preregister table for handling of cycles (keys, values or metatable). */
|
||||
|
||||
Reference in New Issue
Block a user