Skip to content

Commit

Permalink
cast to void* which pleases -Wformat
Browse files Browse the repository at this point in the history
  • Loading branch information
romainfrancois committed Apr 22, 2014
1 parent 26797de commit 1b6cfb9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/address.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ using namespace Rcpp;

const char* address(SEXP x){
static char buffer[20] ;
snprintf( buffer, 20, "%p", x ) ;
snprintf( buffer, 20, "%p", reinterpret_cast<void*>(x) ) ;
return (const char*)buffer ;
}

Expand Down

0 comments on commit 1b6cfb9

Please sign in to comment.