Skip to content

Commit e07023a

Browse files
committed
add const as we use INTEGER_RO
1 parent 50061db commit e07023a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/frollR.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ SEXP frolladapt(SEXP xobj, SEXP kobj, SEXP partial) {
216216
int n = INTEGER(kobj)[0];
217217
if (n < 1L)
218218
error(_("'n' must be positive integer values (>= 1)"));
219-
int *x = INTEGER_RO(xobj);
219+
const int *x = INTEGER_RO(xobj);
220220
int64_t len = XLENGTH(xobj); // can be 0
221221

222222
if (len && x[0] == NA_INTEGER)

0 commit comments

Comments
 (0)