summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilipp Gesang <phg42.2a@gmail.com>2013-04-16 04:44:22 +0200
committerPhilipp Gesang <phg42.2a@gmail.com>2013-04-16 04:44:22 +0200
commit2f229562fad26352a346f846d23d803818581197 (patch)
tree84189f617d9e524f9d8377d2172fd6b9f5da4b03
parentf998fe177acb83497677679122a7e3e60d29b7b5 (diff)
downloadluatexbase-2f229562fad26352a346f846d23d803818581197.tar.gz
begin attribute allocation at 255
luaotfload will allocate attributes from 127 but never exceed 254. This patch prevents attribute clashes by offsetting the allocation of new attributes by 255.
-rw-r--r--luatexbase-attr.dtx2
1 files changed, 1 insertions, 1 deletions
diff --git a/luatexbase-attr.dtx b/luatexbase-attr.dtx
index 923ad97..86470b2 100644
--- a/luatexbase-attr.dtx
+++ b/luatexbase-attr.dtx
@@ -357,7 +357,7 @@ attributes = {}
% doesn't seem bad to ``loose'' one item in order to avoid this problem.
%
% \begin{macrocode}
-local last_alloc = 0
+local last_alloc = 255
function new_attribute(name, silent)
if last_alloc >= 65535 then
if silent then