example array.cpp error:C4146 Unary minus operator applied to unsigned type, the result is still unsigned. store.hpp 241
Open
- Dominant language
- C++
- Stars
- 885
- Forks
- 181
- PR merge metrics
- No merged PRs in 30d
Description
I use cmake build zfp and general example "arraycpp", but when i run it in visual stdio 2022, there's a error: C4146 Unary minus operator applied to unsigned type, the result is still unsigned. It is in store.hpp in 241 rows.I don't know how to fix it.
Contributor guide
Research direction
Reproduce the general arraycpp example with the CMake build in Visual Studio 2022, then inspect store.hpp around line 241 where C4146 is reported. Confirm the resulting build behavior and verify that the example builds successfully without this diagnostic.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- build-system
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100