[libc-commits] [PATCH] D151234: [libc] Change UInt integer conversion operators to use standard types.
Michael Jones via Phabricator via libc-commits
libc-commits at lists.llvm.org
Tue May 23 10:59:23 PDT 2023
michaelrj added inline comments.
================
Comment at: libc/src/__support/UInt.h:80
- constexpr explicit operator uint64_t() const { return val[0]; }
+ constexpr explicit operator unsigned long long() const {
+ return static_cast<unsigned long long>(val[0]);
----------------
nit: it might be best to have both the `uint` and the standard int types for casting
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D151234/new/
https://reviews.llvm.org/D151234
More information about the libc-commits
mailing list