Skip to content

Commit d964085

Browse files
committed
WIP: fixup TypePlistHomHelper
1 parent a20dad2 commit d964085

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/plist.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -611,10 +611,9 @@ static Obj TypePlistEmpty(Obj list)
611611
static Obj TypePlistHomHelper(Obj family, UInt tnum, UInt knr, Obj list)
612612
{
613613
// make sure tnum reflects mutability
614+
knr = 2*(tnum - knr) + 1;
614615
if (!IS_MUTABLE_OBJ(list))
615-
tnum |= IMMUTABLE;
616-
617-
knr = tnum - knr + 1;
616+
knr++;
618617

619618
// get the list types of that family
620619
Obj types = TYPES_LIST_FAM(family);

0 commit comments

Comments
 (0)