Skip to content

Commit

Permalink
use static cast
Browse files Browse the repository at this point in the history
  • Loading branch information
Neko-Life committed Sep 7, 2023
1 parent 3005b30 commit 17de084
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dpp/discordvoiceclient.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1179,7 +1179,7 @@ discord_voice_client& discord_voice_client::send_audio_raw(uint16_t* audio_data,

while (s_audio_data.length() > send_audio_raw_max_length) {
std::string packet(s_audio_data.substr(0, send_audio_raw_max_length));
const auto packet_size = (long long)packet.size();
const auto packet_size = static_cast<ptrdiff_t>(packet.size());

s_audio_data.erase(s_audio_data.begin(), s_audio_data.begin() + packet_size);

Expand Down

0 comments on commit 17de084

Please sign in to comment.