diff options
| -rw-r--r-- | ltable.c | 7 | ||||
| -rw-r--r-- | ltm.h | 2 |
2 files changed, 4 insertions, 5 deletions
| @@ -651,10 +651,9 @@ static void reinserthash (lua_State *L, Table *ot, Table *t) { | |||
| 651 | 651 | ||
| 652 | 652 | ||
| 653 | /* | 653 | /* |
| 654 | ** Exchange the hash part of 't1' and 't2'. (In 'flags', only the | 654 | ** Exchange the hash part of 't1' and 't2'. (In 'flags', only the dummy |
| 655 | ** dummy bit must be exchanged: The 'isrealasize' is not related | 655 | ** bit must be exchanged: The metamethod bits do not change during a |
| 656 | ** to the hash part, and the metamethod bits do not change during | 656 | ** resize, so the "real" table can keep their values.) |
| 657 | ** a resize, so the "real" table can keep their values.) | ||
| 658 | */ | 657 | */ |
| 659 | static void exchangehashpart (Table *t1, Table *t2) { | 658 | static void exchangehashpart (Table *t1, Table *t2) { |
| 660 | lu_byte lsizenode = t1->lsizenode; | 659 | lu_byte lsizenode = t1->lsizenode; |
| @@ -49,7 +49,7 @@ typedef enum { | |||
| 49 | ** Mask with 1 in all fast-access methods. A 1 in any of these bits | 49 | ** Mask with 1 in all fast-access methods. A 1 in any of these bits |
| 50 | ** in the flag of a (meta)table means the metatable does not have the | 50 | ** in the flag of a (meta)table means the metatable does not have the |
| 51 | ** corresponding metamethod field. (Bit 6 of the flag indicates that | 51 | ** corresponding metamethod field. (Bit 6 of the flag indicates that |
| 52 | ** the table is using the dummy node; bit 7 is used for 'isrealasize'.) | 52 | ** the table is using the dummy node.) |
| 53 | */ | 53 | */ |
| 54 | #define maskflags cast_byte(~(~0u << (TM_EQ + 1))) | 54 | #define maskflags cast_byte(~(~0u << (TM_EQ + 1))) |
| 55 | 55 | ||
