Skip to content

Commit

Permalink
Even more spots missed.
Browse files Browse the repository at this point in the history
  • Loading branch information
LTLA committed Oct 24, 2023
1 parent f4bb7c4 commit 54245b1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions inst/include/Rcpp/vector/MatrixRow.h
Original file line number Diff line number Diff line change
Expand Up @@ -206,8 +206,8 @@ class MatrixRow : public VectorBase< RTYPE, true, MatrixRow<RTYPE> > {
int parent_nrow ;
int row ;

inline int get_parent_index(int i) const {
RCPP_DEBUG_4( "MatrixRow<%d>::get_parent_index(int = %d), parent_nrow = %d >> %d\n", RTYPE, i, parent_nrow, i*parent_nrow )
inline R_xlen_t get_parent_index(int i) const {
RCPP_DEBUG_4( "MatrixRow<%d>::get_parent_index(int = %d), parent_nrow = %d >> %d\n", RTYPE, i, parent_nrow, static_cast<R_xlen_t>(i) * parent_nrow )
return static_cast<R_xlen_t>(i) * parent_nrow ;
}
} ;
Expand Down Expand Up @@ -332,7 +332,7 @@ class ConstMatrixRow : public VectorBase< RTYPE, true, ConstMatrixRow<RTYPE> > {
int row ;

inline R_xlen_t get_parent_index(int i) const {
RCPP_DEBUG_4( "ConstMatrixRow<%d>::get_parent_index(int = %d), parent_nrow = %d >> %d\n", RTYPE, i, parent_nrow, static_cast<R_xlen_t>(i) *parent_nrow )
RCPP_DEBUG_4( "ConstMatrixRow<%d>::get_parent_index(int = %d), parent_nrow = %d >> %d\n", RTYPE, i, parent_nrow, static_cast<R_xlen_t>(i) * parent_nrow )
return static_cast<R_xlen_t>(i) * parent_nrow ;
}
} ;
Expand Down

0 comments on commit 54245b1

Please sign in to comment.