[libunwind] r270927 - Use size_t to store the results of sizeof calculations.
Asiri Rathnayake via cfe-commits
cfe-commits at lists.llvm.org
Thu May 26 14:56:04 PDT 2016
Author: asiri
Date: Thu May 26 16:56:04 2016
New Revision: 270927
URL: http://llvm.org/viewvc/llvm-project?rev=270927&view=rev
Log:
Use size_t to store the results of sizeof calculations.
NFC.
Modified:
libunwind/trunk/src/config.h
Modified: libunwind/trunk/src/config.h
URL: http://llvm.org/viewvc/llvm-project/libunwind/trunk/src/config.h?rev=270927&r1=270926&r2=270927&view=diff
==============================================================================
--- libunwind/trunk/src/config.h (original)
+++ libunwind/trunk/src/config.h Thu May 26 16:56:04 2016
@@ -131,7 +131,7 @@ template <typename _Type, typename _Mem>
struct check_fit {
template <typename T>
struct blk_count {
- static const uint64_t count =
+ static const size_t count =
(sizeof(T) + sizeof(uint64_t) - 1) / sizeof(uint64_t);
};
static const bool does_fit =
More information about the cfe-commits
mailing list