Skip to content

Commit 2ed41b2

Browse files
committed
format strings
1 parent 500f642 commit 2ed41b2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

inst/include/cpp11/protect.hpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,9 @@ static struct {
279279
void print() {
280280
static SEXP list = get_preserve_list();
281281
for (SEXP cell = list; cell != R_NilValue; cell = CDR(cell)) {
282-
REprintf("%x CAR: %x CDR: %x TAG: %x\n", cell, CAR(cell), CDR(cell), TAG(cell));
282+
REprintf("%p CAR: %p CDR: %p TAG: %p\n", reinterpret_cast<void*>(cell),
283+
reinterpret_cast<void*>(CAR(cell)), reinterpret_cast<void*>(CDR(cell)),
284+
reinterpret_cast<void*>(TAG(cell)));
283285
}
284286
REprintf("---\n");
285287
}

0 commit comments

Comments
 (0)