util/ztact.lua

changeset 2958
49d6bf241653
parent 1523
841d61be198f
child 3540
bc139431830b
--- a/util/ztact.lua	Thu Apr 01 19:27:26 2010 +0500
+++ b/util/ztact.lua	Thu Apr 01 19:28:23 2010 +0500
@@ -114,7 +114,7 @@
 
 function tostring_r (d, indent, tab0)    -- - - - - - - - - - - - -  tostring_r
 
-  tab1 = tab0 or {}
+  local tab1 = tab0 or {}
   local rep = string.rep ('  ', indent or 0)
   if type (d) == 'table' then
     for k,v in pairs (d) do
@@ -210,7 +210,7 @@
 
 
 local function test_queue ()
-  t = {}
+  local t = {}
   enqueue (t, 1)
   enqueue (t, 2)
   enqueue (t, 3)

mercurial