Skip to content

Commit 6976f36

Browse files
author
luke
committed
Use xlengthgets instead of SETLENGTH.
git-svn-id: https://svn.r-project.org/R/trunk@89073 00db46b3-68df-0310-9c12-caf00c1e9a41
1 parent 79df9d6 commit 6976f36

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/library/grid/src/unit.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1752,7 +1752,7 @@ SEXP matchUnit(SEXP units, SEXP unit) {
17521752
count++;
17531753
}
17541754
}
1755-
SETLENGTH(matches, count);
1755+
matches = xlengthgets(matches, count);
17561756
UNPROTECT(1);
17571757
return matches;
17581758
}

0 commit comments

Comments
 (0)