# HG changeset patch # User Waqas Hussain # Date 1270132103 -18000 # Node ID 49d6bf241653b828cb57d1fbe69a5a1b0efa56e0 # Parent 805b067cd13eea2a44856c67d24d159044abca92 util.ztact: Fixed global accesses. diff -r 805b067cd13e -r 49d6bf241653 util/ztact.lua --- 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)