summaryrefslogtreecommitdiff
path: root/libs/liblua/src/ltable.h
diff options
context:
space:
mode:
Diffstat (limited to 'libs/liblua/src/ltable.h')
-rw-r--r--libs/liblua/src/ltable.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/libs/liblua/src/ltable.h b/libs/liblua/src/ltable.h
index ebd7f8ec3e..c0060f4b6e 100644
--- a/libs/liblua/src/ltable.h
+++ b/libs/liblua/src/ltable.h
@@ -15,7 +15,12 @@
#define gnext(n) ((n)->u.next)
-#define invalidateTMcache(t) ((t)->flags = 0)
+/*
+** Clear all bits of fast-access metamethods, which means that the table
+** may have any of these metamethods. (First access that fails after the
+** clearing will set the bit again.)
+*/
+#define invalidateTMcache(t) ((t)->flags &= ~maskflags)
/* true when 't' is using 'dummynode' as its hash part */