mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-24 08:52:18 +01:00
Fix rac.Writer's TTag for branch nodes
This commit is contained in:
1 parent
be2963bffe
commit
e292a22ccb
2 files changed
+6
-2
No files matched your search
+5
-1
@@ -556,7 +556,11 @@ func (w *nodeWriter) writeIndex(n *node) error {
|
||||
}
|
||||
buf = buf[8*len(n.resources):]
|
||||
for i, o := range n.children {
|
||||
putU64LE(buf[8*i:], dPtr|resourceToTag(n.resources, o.tertiary))
|
||||
tag := uint64(0xFE << 56)
|
||||
if len(o.children) == 0 {
|
||||
tag = resourceToTag(n.resources, o.tertiary)
|
||||
}
|
||||
putU64LE(buf[8*i:], dPtr|tag)
|
||||
dPtr += o.dRangeSize
|
||||
}
|
||||
buf = buf[8*len(n.children):]
|
||||
|
||||
Reference in new issue
Block a user