warning C4267: 'initializing': conversion from 'size_t' to 'unsigned long', possible loss of data
Details
Details
- Reviewers
philnik - Group Reviewers
Restricted Project - Commits
- rG0c90d5f7e967: [libc++][test] fix C4267 warning in bitset.members\to_ulong.pass.cpp
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
I mean why are you casting it to unsigned long? AFAICT std::bitset() should take an unsigned long long, so it shouldn't be a narrowing conversion when calling it with std::size_t.