Skip to content

Commit 1646c39

Browse files
authored
Update src/reorder.c
1 parent b99ae81 commit 1646c39

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/reorder.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,8 @@ SEXP reorder(SEXP x, SEXP order)
7272
switch (size)
7373
{
7474
case 4: {
75-
const int* restrict vd = DATAPTR_RO(v);
76-
int* restrict tmp = TMP;
75+
const int *restrict vd = DATAPTR_RO(v);
76+
int *restrict tmp = TMP;
7777
#pragma omp parallel for num_threads(getDTthreads(end, true))
7878
for (int i=start; i<=end; ++i) {
7979
tmp[i-start] = vd[idx[i]-1]; // copies 4 bytes; e.g. INTSXP and also SEXP pointers on 32bit (STRSXP and VECSXP)

0 commit comments

Comments
 (0)