Changeset 43ba118 in mainline


Ignore:
Timestamp:
2018-07-05T21:41:18Z (6 years ago)
Author:
Dzejrou <dzejrou@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
ee906a6
Parents:
9b7aef85
git-author:
Jaroslav Jindrak <dzejrou@…> (2017-11-11 00:27:47)
git-committer:
Dzejrou <dzejrou@…> (2018-07-05 21:41:18)
Message:

cpp: fixed premature returns in <numeric>

File:
1 edited

Legend:

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

    r9b7aef85 r43ba118  
    9797    {
    9898        if (first == last)
    99             return;
     99            return result;
    100100
    101101        auto acc{*first++};
     
    113113    {
    114114        if (first == last)
    115             return;
     115            return result;
    116116
    117117        auto acc{*first++};
     
    133133    {
    134134        if (first == last)
    135             return;
     135            return result;
    136136
    137137        auto acc{*first++};
     
    153153    {
    154154        if (first == last)
    155             return;
     155            return result;
    156156
    157157        auto acc{*first++};
Note: See TracChangeset for help on using the changeset viewer.