Skip to content

Commit 923dab1

Browse files
committed
make static inline, add codecov
1 parent e291c95 commit 923dab1

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

inst/tests/froll.Rraw

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1429,6 +1429,10 @@ test(6010.610, frollapply(numeric(), 3, identity), list())
14291429
test(6010.611, frollapply(list(numeric(), numeric()), 3, identity), list(NULL,NULL))
14301430
test(6010.612, frollapply(list(numeric(), 1:3), 3, identity), list(NULL, list(NA,NA,1:3)))
14311431

1432+
## codecov memcpy calls #7304
1433+
x = data.table(v1=1:2, v2=c(1,2), v3=c("a","b"), v4=list(1,2), v5=as.complex(1:2), v6=as.raw(1:2))
1434+
test(6010.619, frollapply(x, 1, ncol, by.column=FALSE), c(6L,6L))
1435+
14321436
#### list input in frollapply
14331437
DT = as.data.table(iris)
14341438
test(6010.620, ## list()/.() same as data.frame()

src/frollapply.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#include "data.table.h"
22

3-
void MEMCPY_SEXP(SEXP dest, size_t offset, SEXP src, int count)
3+
static inline void MEMCPY_SEXP(SEXP dest, size_t offset, SEXP src, int count)
44
{
55
switch (TYPEOF(dest)) {
66
case INTSXP: {

0 commit comments

Comments
 (0)