Diff

util/ztact.lua @ 2961:db3c0ecce3f4

Merge 0.6->0.7
author Matthew Wild <mwild1@gmail.com>
date Sat, 03 Apr 2010 23:09:11 +0100
parent 2958:49d6bf241653
child 3540:bc139431830b
line wrap: on
line diff
--- a/util/ztact.lua	Tue Mar 30 19:46:53 2010 +0100
+++ b/util/ztact.lua	Sat Apr 03 23:09:11 2010 +0100
@@ -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)