Skip to content

Commit d63fbb7

Browse files
committed
Merge pull request #126 from o-lim/fix-deepcompare
Use rawequal instead of == in util.deepcompare
2 parents 47bf1c4 + d16c382 commit d63fbb7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/util.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ function util.deepcompare(t1,t2,ignore_mt,cycles,thresh1,thresh2)
1111
-- then use that unless asked not to
1212
if not ignore_mt then return t1 == t2 end
1313
else -- we can skip the deep comparison below if t1 and t2 share identity
14-
if t1 == t2 then return true end
14+
if rawequal(t1, t2) then return true end
1515
end
1616

1717
-- handle recursive tables

0 commit comments

Comments
 (0)