diff options
author | Ed Tanous <edtanous@google.com> | 2022-01-06 23:47:59 +0300 |
---|---|---|
committer | Ed Tanous <ed@tanous.net> | 2022-01-12 21:32:29 +0300 |
commit | 6de264cc79f5d0186f0136dbb8af15794e295894 (patch) | |
tree | ea13a49e49852b84322e37e7d5443cbbbf733a68 /include/kvm_websocket.hpp | |
parent | 24b2fe810e784f04728379f49af54a3ab2252c9b (diff) | |
download | bmcweb-6de264cc79f5d0186f0136dbb8af15794e295894.tar.xz |
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
Diffstat (limited to 'include/kvm_websocket.hpp')
-rw-r--r-- | include/kvm_websocket.hpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/kvm_websocket.hpp b/include/kvm_websocket.hpp index a9dc8eaf0e..51246aa57f 100644 --- a/include/kvm_websocket.hpp +++ b/include/kvm_websocket.hpp @@ -145,8 +145,8 @@ class KvmSession 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; }; |