Skip to content

Commit eb069bf

Browse files
author
Florian Plaza Oñate
committed
fix wrong return type in product of dimensions
1 parent 94f0e27 commit eb069bf

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)