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/include/kvm_websocket.hpp b/include/kvm_websocket.hpp
index a9dc8ea..51246aa 100644
--- a/include/kvm_websocket.hpp
+++ b/include/kvm_websocket.hpp
@@ -145,8 +145,8 @@
crow::websocket::Connection& conn;
boost::asio::ip::tcp::socket hostSocket;
- boost::beast::flat_static_buffer<1024U * 50U> outputBuffer;
- boost::beast::flat_static_buffer<1024U> inputBuffer;
+ boost::beast::flat_static_buffer<1024UL * 50UL> outputBuffer;
+ boost::beast::flat_static_buffer<1024UL> inputBuffer;
bool doingWrite;
};