Skip to content

Commit bd55164

Browse files
committed
reverse sense for CPPTL too
1 parent 4c5832a commit bd55164

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib_json/json_valueiterator.inl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ ValueIteratorBase::difference_type
7777
ValueIteratorBase::computeDistance(const SelfType& other) const {
7878
#ifndef JSON_VALUE_USE_INTERNAL_MAP
7979
#ifdef JSON_USE_CPPTL_SMALLMAP
80-
return current_ - other.current_;
80+
return other.current_ - current_;
8181
#else
8282
// Iterator for null value are initialized using the default
8383
// constructor, which initialize current_ to the default

0 commit comments

Comments
 (0)