Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset 96fec16 in mainline


Ignore:
Timestamp:
2019-07-03T15:46:24Z (16 months ago)
Author:
Jaroslav Jindrak <dzejrou@…>
Branches:
master
Children:
8e24583
Parents:
b96e87e
Message:

cpp: fix duration::operator+ which incorrectly used parentheses and caused infinite recursion

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/cpp/include/__bits/chrono.hpp

    rb96e87e r96fec16  
    331331    {
    332332        using CD = common_type_t<duration<Rep1, Period1>, duration<Rep2, Period2>>;
    333         return CD(CD(lhs.count()) + CD(rhs.count()));
     333        return CD(CD(lhs).count() + CD(rhs).count());
    334334    }
    335335
Note: See TracChangeset for help on using the changeset viewer.