Skip to content

Commit 2a2e65a

Browse files
committed
Added INTEGER64/_RO accessors
1 parent 3a45206 commit 2a2e65a

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/data.table.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@
2121
#endif
2222
#include <Rinternals.h>
2323
#define SEXPPTR_RO(x) ((const SEXP *)DATAPTR_RO(x)) // to avoid overhead of looped STRING_ELT and VECTOR_ELT
24+
#define INTEGER64(x) ((int64_t *)REAL(x))
25+
#define INTEGER64_RO(x) ((const int64_t *)REAL_RO(x))
2426
#include <stdint.h> // for uint64_t rather than unsigned long long
2527
#include <stdarg.h> // for va_list, va_start
2628
#include <stdbool.h>

0 commit comments

Comments
 (0)