Changeset cf573ec in mainline


Ignore:
Timestamp:
2018-07-05T21:41:23Z (6 years ago)
Author:
Dzejrou <dzejrou@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
b024c0c9
Parents:
4f22d0c3
git-author:
Dzejrou <dzejrou@…> (2018-05-14 17:00:54)
git-committer:
Dzejrou <dzejrou@…> (2018-07-05 21:41:23)
Message:

cpp: fixed distance, it used postincrement which resulted in end() dereference

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/cpp/include/impl/iterator.hpp

    r4f22d0c3 rcf573ec  
    132132        {
    133133            diff_t diff{};
    134             while (first++ != last)
     134            while (first != last)
     135            {
    135136                ++diff;
     137                ++first;
     138            }
    136139
    137140            return diff;
Note: See TracChangeset for help on using the changeset viewer.