From d16c382bbd5920936696425a3d48333bf72d8391 Mon Sep 17 00:00:00 2001 From: Oscar Lim Date: Sat, 11 Jul 2015 18:33:45 -0700 Subject: [PATCH] Use rawequal instead of == in util.deepcompare --- src/util.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util.lua b/src/util.lua index 23c5194..d414b1f 100644 --- a/src/util.lua +++ b/src/util.lua @@ -11,7 +11,7 @@ function util.deepcompare(t1,t2,ignore_mt,cycles,thresh1,thresh2) -- then use that unless asked not to if not ignore_mt then return t1 == t2 end else -- we can skip the deep comparison below if t1 and t2 share identity - if t1 == t2 then return true end + if rawequal(t1, t2) then return true end end -- handle recursive tables