Skip to content

Commit bfc2867

Browse files
committed
Merge branch 'fix/rvalue-and-vector-scalar-deserializer' of github.com:stan-dev/stan into fix/rvalue-and-vector-scalar-deserializer
2 parents 7d3f001 + e3c57a0 commit bfc2867

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/stan/io/deserializer.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -355,8 +355,8 @@ class deserializer {
355355
return std::decay_t<Ret>();
356356
} else {
357357
check_r_capacity(m);
358-
const auto *start_pos = &this->map_r_.coeffRef(this->pos_r_);
359-
const auto *end_pos = &this->map_r_.coeffRef(this->pos_r_ + m);
358+
const auto* start_pos = &this->map_r_.coeffRef(this->pos_r_);
359+
const auto* end_pos = &this->map_r_.coeffRef(this->pos_r_ + m);
360360
this->pos_r_ += m;
361361
return std::decay_t<Ret>(start_pos, end_pos);
362362
}

src/stan/model/indexing/rvalue.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,13 +108,13 @@ inline T rvalue(T&& x, const char* name, index_omni /*idx1*/,
108108

109109
template <typename T>
110110
inline T& rvalue(T& x, const char* name, index_omni /*idx1*/,
111-
index_omni /*idx2*/) {
111+
index_omni /*idx2*/) {
112112
return x;
113113
}
114114

115115
template <typename T>
116116
inline const T& rvalue(const T& x, const char* name, index_omni /*idx1*/,
117-
index_omni /*idx2*/) {
117+
index_omni /*idx2*/) {
118118
return x;
119119
}
120120

0 commit comments

Comments
 (0)