Enable bugprone widening checks in clang
Most of the errors we hit are simply places we need to explicitly
increase the width of the integer. Luckily, these are few and far
between.
Tested: Code compiles, unit tests pass.
Signed-off-by: Ed Tanous <edtanous@google.com>
Change-Id: I617d87f3970ae773e0767bb2f20118fca2e71daa
diff --git a/http/http_connection.hpp b/http/http_connection.hpp
index 0f20761..6de2bf7 100644
--- a/http/http_connection.hpp
+++ b/http/http_connection.hpp
@@ -38,8 +38,8 @@
static int connectionCount = 0;
// request body limit size set by the bmcwebHttpReqBodyLimitMb option
-constexpr unsigned int httpReqBodyLimit =
- 1024 * 1024 * bmcwebHttpReqBodyLimitMb;
+constexpr uint64_t httpReqBodyLimit =
+ 1024UL * 1024UL * bmcwebHttpReqBodyLimitMb;
constexpr uint64_t loggedOutPostBodyLimit = 4096;