Changeset 0d14c25 in mainline for uspace/lib/cpp/include/__bits/locale/num_get.hpp
- Timestamp:
- 2019-05-27T12:38:26Z (6 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- bebd154
- Parents:
- bc56f30
- git-author:
- Jiří Zárevúcky <zarevucky.jiri@…> (2019-02-24 16:25:38)
- git-committer:
- Jiří Zárevúcky <zarevucky.jiri@…> (2019-05-27 12:38:26)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/cpp/include/__bits/locale/num_get.hpp
rbc56f30 r0d14c25 303 303 int olderrno{errno}; 304 304 errno = EOK; 305 char *endptr = NULL; 305 306 306 307 if constexpr (is_signed<BaseType>::value) 307 res = ::strtoll(base.buffer_, nullptr, num_base);308 else 309 res = ::strtoull(base.buffer_, nullptr, num_base);310 311 if (errno != EOK )308 res = ::strtoll(base.buffer_, &endptr, num_base); 309 else 310 res = ::strtoull(base.buffer_, &endptr, num_base); 311 312 if (errno != EOK || endptr == base.buffer_) 312 313 err |= ios_base::failbit; 313 314
Note:
See TracChangeset
for help on using the changeset viewer.