Skip to content

Commit e0718b4

Browse files
author
Qiang Kou
committed
fix -Werror error
1 parent 9d8c3a2 commit e0718b4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

inst/include/Rcpp/String.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -407,9 +407,6 @@ namespace Rcpp {
407407
/** the CHARSXP this String encapsulates */
408408
SEXP data ;
409409

410-
/** the encoding of encapsulated CHARSXP */
411-
cetype_t enc;
412-
413410
/** a buffer used to do string operations withough going back to the SEXP */
414411
std::string buffer ;
415412

@@ -419,6 +416,9 @@ namespace Rcpp {
419416
/** is the buffer initialized */
420417
bool buffer_ready ;
421418

419+
/** the encoding of encapsulated CHARSXP */
420+
cetype_t enc;
421+
422422
inline bool is_na() const { return data == NA_STRING ; }
423423
inline void setBuffer(){
424424
if( !buffer_ready){

0 commit comments

Comments
 (0)