Skip to content

Commit f4bb7c4

Browse files
committed
Missed another spot.
1 parent 6707d64 commit f4bb7c4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

inst/include/Rcpp/vector/MatrixRow.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -331,8 +331,8 @@ class ConstMatrixRow : public VectorBase< RTYPE, true, ConstMatrixRow<RTYPE> > {
331331
int parent_nrow ;
332332
int row ;
333333

334-
inline int get_parent_index(int i) const {
335-
RCPP_DEBUG_4( "ConstMatrixRow<%d>::get_parent_index(int = %d), parent_nrow = %d >> %d\n", RTYPE, i, parent_nrow, i*parent_nrow )
334+
inline R_xlen_t get_parent_index(int i) const {
335+
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 )
336336
return static_cast<R_xlen_t>(i) * parent_nrow ;
337337
}
338338
} ;

0 commit comments

Comments
 (0)