Browse Source

Pass NextVar tests

Pass nextvar.lua tests
moogle 8 months ago
parent
commit
e1756f07df
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/Lua/LuaTable.cs

+ 1 - 1
src/Lua/LuaTable.cs

@@ -51,7 +51,7 @@ public sealed class LuaTable
                 if (MathEx.IsInteger(d))
                 if (MathEx.IsInteger(d))
                 {
                 {
                     var index = (int)d;
                     var index = (int)d;
-                    if (0 < index && index <= Math.Max(array.Length * 2, 8))
+                    if (0 < index && index <= 0xf00 && index <= Math.Max(array.Length * 2, 8))
                     {
                     {
                         if (array.Length < index)
                         if (array.Length < index)
                             EnsureArrayCapacity(index);
                             EnsureArrayCapacity(index);