Skip to content

Commit 19b0970

Browse files
committed
Also fixup debug comments
1 parent 57fef8f commit 19b0970

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

inst/include/cpp11/sexp.hpp

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,15 @@ class sexp {
2020
sexp() = default;
2121

2222
sexp(SEXP data) : data_(data), preserve_token_(preserved.insert(data_)) {
23-
// REprintf("created %x %x : %i\n", data_, preserve_token_, protect_head_size());
23+
// REprintf("created %p %p\n", reinterpret_cast<void*>(data_),
24+
// reinterpret_cast<void*>(preserve_token_));
2425
}
2526

2627
sexp(const sexp& rhs) {
2728
data_ = rhs.data_;
2829
preserve_token_ = preserved.insert(data_);
29-
// REprintf("copied %x new protect %x : %i\n", rhs.data_, preserve_token_,
30-
// protect_head_size());
30+
// REprintf("copied %p new protect %p\n", reinterpret_cast<void*>(rhs.data_),
31+
// reinterpret_cast<void*>(preserve_token_));
3132
}
3233

3334
sexp(sexp&& rhs) {
@@ -37,15 +38,15 @@ class sexp {
3738
rhs.data_ = R_NilValue;
3839
rhs.preserve_token_ = R_NilValue;
3940

40-
// REprintf("moved %x : %i\n", rhs.data_, protect_head_size());
41+
// REprintf("moved %p\n", reinterpret_cast<void*>(rhs.data_));
4142
}
4243

4344
sexp& operator=(const sexp& rhs) {
4445
preserved.release(preserve_token_);
4546

4647
data_ = rhs.data_;
4748
preserve_token_ = preserved.insert(data_);
48-
// REprintf("assigned %x : %i\n", rhs.data_, protect_head_size());
49+
// REprintf("assigned %p\n", reinterpret_cast<void*>(rhs.data_));
4950
return *this;
5051
}
5152

0 commit comments

Comments
 (0)