diff options
author | Hans Hagen <pragma@wxs.nl> | 2011-02-25 22:03:00 +0100 |
---|---|---|
committer | Hans Hagen <pragma@wxs.nl> | 2011-02-25 22:03:00 +0100 |
commit | 3c5dbaefc44f38d6da23a7db2c06a0a4af0996fa (patch) | |
tree | c3ad9361af8d3f1dd37de52463fa505680446a1e /tex/context/base/node-res.lua | |
parent | 15ee46403d36de6f29b4e45171e061708ec69193 (diff) | |
download | context-3c5dbaefc44f38d6da23a7db2c06a0a4af0996fa.tar.gz |
beta 2011.02.25 22:03
Diffstat (limited to 'tex/context/base/node-res.lua')
-rw-r--r-- | tex/context/base/node-res.lua | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tex/context/base/node-res.lua b/tex/context/base/node-res.lua index 6e11742de..7f737ea70 100644 --- a/tex/context/base/node-res.lua +++ b/tex/context/base/node-res.lua @@ -309,10 +309,10 @@ local lastid = 0 setmetatable(userids, { __index = function(t,k) if type(k) == "string" then - local n = lastid + 1 - rawset(userids,n,k) - rawset(userids,k,n) - return n + lastid = lastid + 1 + rawset(userids,lastid,k) + rawset(userids,k,lastid) + return lastid else rawset(userids,k,k) return k @@ -323,7 +323,7 @@ setmetatable(userids, { end } ) -function pool.usernumber(id,num) -- if one argument then num +function pool.usernumber(id,num) local n = copy_node(user_n) if num then n.user_id, n.value = id, num |