Skip to content

Commit

Permalink
Fix warning
Browse files Browse the repository at this point in the history
  • Loading branch information
resetius committed Mar 3, 2024
1 parent 6683a4a commit 8ad25f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/client.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ TVoidTask Client(TPoller& poller, TSocket socket) {
std::string strIndex;
strIndex += std::string_view(line.Part1.data(), line.Part1.size());
strIndex += std::string_view(line.Part2.data(), line.Part2.size());
sscanf(strIndex.data(), "_ %llu", &index);
sscanf(strIndex.data(), "_ %llu", (unsigned long long*)&index);
co_await byteWriter.Write(&index, sizeof(index));
} else {
co_await byteWriter.Write(&header, sizeof(header));
Expand Down

0 comments on commit 8ad25f0

Please sign in to comment.