diff options
author | Dimitry Andric <dimitry@andric.com> | 2016-09-02 21:02:11 +0000 |
---|---|---|
committer | Dimitry Andric <dimitry@andric.com> | 2016-09-02 21:02:11 +0000 |
commit | 54150db2328562139021f259038a3978cc6b521e (patch) | |
tree | 6602e2b9890480d0270822e63461bcd1d4c2ed8c /lldb/packages/Python/lldbsuite/test/python_api/section/TestSectionAPI.py | |
parent | e6abe52905ee652c8d165a84e11b982457c5c51a (diff) | |
download | bcm5719-llvm-54150db2328562139021f259038a3978cc6b521e.tar.gz bcm5719-llvm-54150db2328562139021f259038a3978cc6b521e.zip |
Avoid narrowing warnings in __bitset constructor
When <bitset> is compiled with warnings enabled, on a platform where
size_t is 4 bytes, it results in errors similar to:
bitset:265:16: error: non-constant-expression cannot be narrowed
from type 'unsigned long long' to '__storage_type' (aka 'unsigned
int') in initializer list [-Wc++11-narrowing]
: __first_{__v, __v >> __bits_per_word}
^~~
bitset:676:52: note: in instantiation of member function
'std::__1::__bitset<2, 53>::__bitset' requested here
bitset(unsigned long long __v) _NOEXCEPT : base(__v) {}
^
Fix these by casting the initializer list elements to __storage_type.
Reviewers: mclow.lists, EricWF
Differential Revision: https://reviews.llvm.org/D23960
llvm-svn: 280543
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/python_api/section/TestSectionAPI.py')
0 files changed, 0 insertions, 0 deletions