summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--xmake/core/base/table.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/core/base/table.lua b/xmake/core/base/table.lua
index 39e04596d..45cb4f23d 100644
--- a/xmake/core/base/table.lua
+++ b/xmake/core/base/table.lua
@@ -533,7 +533,7 @@ end
-- is empty table?
function table.empty(tbl)
- return type(tbl) == "table" and #tbl == 0 and #table.keys(tbl) == 0
+ return type(tbl) == "table" and next(tbl) == nil
end
-- return indices or keys for the given value