Commit be2a7515 authored by gabime's avatar gabime

Fixed clang-tidy warning in example

parent 840adfbb
...@@ -143,7 +143,7 @@ void async_example() ...@@ -143,7 +143,7 @@ void async_example()
#include "spdlog/fmt/bin_to_hex.h" #include "spdlog/fmt/bin_to_hex.h"
void binary_example() void binary_example()
{ {
std::vector<char> buf; std::vector<char> buf(80);
for (int i = 0; i < 80; i++) for (int i = 0; i < 80; i++)
{ {
buf.push_back(static_cast<char>(i & 0xff)); buf.push_back(static_cast<char>(i & 0xff));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment