summaryrefslogtreecommitdiff
path: root/Rx
diff options
context:
space:
mode:
Diffstat (limited to 'Rx')
-rw-r--r--Rx/v2/src/rxcpp/operators/rx-with_latest_from.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Rx/v2/src/rxcpp/operators/rx-with_latest_from.hpp b/Rx/v2/src/rxcpp/operators/rx-with_latest_from.hpp
index bce0596..febba99 100644
--- a/Rx/v2/src/rxcpp/operators/rx-with_latest_from.hpp
+++ b/Rx/v2/src/rxcpp/operators/rx-with_latest_from.hpp
@@ -193,7 +193,7 @@ struct with_latest_from : public operator_base<rxu::value_type_t<with_latest_fro
}
template<class State, int... IndexN>
void subscribe_all(std::shared_ptr<State> state, rxu::values<int, IndexN...>) const {
- bool subscribed[] = {(subscribe_one<IndexN>(state), true)...};
+ bool subscribed[] = {(subscribe_one<(sizeof...(IndexN)) - 1 - IndexN>(state), true)...};
subscribed[0] = (*subscribed); // silence warning
}