Skip to content

Commit 8c6bff2

Browse files
committed
Merge pull request #374 from fplaza/dimension-fix
fix wrong return type in product of dimensions
2 parents 99ff8c0 + eb069bf commit 8c6bff2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

inst/include/Rcpp/Dimension.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ namespace Rcpp{
5656
inline int size() const {
5757
return (int) dims.size() ;
5858
}
59-
inline int prod() const {
59+
inline R_xlen_t prod() const {
6060
return std::accumulate( dims.begin(), dims.end(), static_cast<R_xlen_t>(1), std::multiplies<R_xlen_t>() );
6161
}
6262

0 commit comments

Comments
 (0)