Changeset 6b81ca5 in mainline


Ignore:
Timestamp:
2018-07-05T21:41:22Z (6 years ago)
Author:
Dzejrou <dzejrou@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
87f625f
Parents:
e7a4f41
git-author:
Dzejrou <dzejrou@…> (2018-05-02 19:06:02)
git-committer:
Dzejrou <dzejrou@…> (2018-07-05 21:41:22)
Message:

cpp: changed return type to unsigned as that was the use case

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/cpp/include/internal/builtins.hpp

    re7a4f41 r6b81ca5  
    6565
    6666    template<class T>
    67     constexpr double ceil(T val)
     67    constexpr size_t ceil(T val)
    6868    {
    69         return __builtin_ceil(static_cast<double>(val));
     69        return static_cast<size_t>(__builtin_ceil(static_cast<double>(val)));
    7070    }
    7171}
Note: See TracChangeset for help on using the changeset viewer.