Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion inst/include/RcppParallel.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ inline void parallelFor(std::size_t begin,
std::size_t grainSize = 1,
int numThreads = -1)
{
grainSize = resolveValue("RCPP_PARALLEL_GRAIN_SIZE", grainSize, 1);
grainSize = resolveValue("RCPP_PARALLEL_GRAIN_SIZE", grainSize, 1u);
numThreads = resolveValue("RCPP_PARALLEL_NUM_THREADS", numThreads, -1);

#if RCPP_PARALLEL_USE_TBB
Expand Down
2 changes: 1 addition & 1 deletion inst/include/RcppParallel/RMatrix.h
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ class RMatrix {
{
}

inline RMatrix(const T* data, std::size_t nrow, std::size_t ncol)
inline RMatrix(T* data, std::size_t nrow, std::size_t ncol)
: data_(data), nrow_(nrow), ncol_(ncol)
{
}
Expand Down