diff options
| author | Asiri Rathnayake <asiri.rathnayake@arm.com> | 2016-05-26 21:56:04 +0000 |
|---|---|---|
| committer | Asiri Rathnayake <asiri.rathnayake@arm.com> | 2016-05-26 21:56:04 +0000 |
| commit | 88fe85071d7b3cf0d2c73879d64c0a3a165d4c2c (patch) | |
| tree | a24096248edb88a0bf5b655f756c90dee6bba3cc | |
| parent | 9551fdd51720bbbac1dc420dbbbe62a5ce455bf4 (diff) | |
| download | bcm5719-llvm-88fe85071d7b3cf0d2c73879d64c0a3a165d4c2c.tar.gz bcm5719-llvm-88fe85071d7b3cf0d2c73879d64c0a3a165d4c2c.zip | |
Use size_t to store the results of sizeof calculations.
NFC.
llvm-svn: 270927
| -rw-r--r-- | libunwind/src/config.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libunwind/src/config.h b/libunwind/src/config.h index 7aedb347a2b..a50222f7c90 100644 --- a/libunwind/src/config.h +++ b/libunwind/src/config.h @@ -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 = |

