We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4c5832a commit bd55164Copy full SHA for bd55164
src/lib_json/json_valueiterator.inl
@@ -77,7 +77,7 @@ ValueIteratorBase::difference_type
77
ValueIteratorBase::computeDistance(const SelfType& other) const {
78
#ifndef JSON_VALUE_USE_INTERNAL_MAP
79
#ifdef JSON_USE_CPPTL_SMALLMAP
80
- return current_ - other.current_;
+ return other.current_ - current_;
81
#else
82
// Iterator for null value are initialized using the default
83
// constructor, which initialize current_ to the default
0 commit comments