Skip to content

Commit

Permalink
Fix build on Windows for x64.
Browse files Browse the repository at this point in the history
  • Loading branch information
john-preston committed Nov 6, 2020
1 parent fdabfb6 commit 931f6a4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion os/windows/AudioOutputWave.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ void AudioOutputWave::SetCurrentDevice(std::string deviceID){

bool wasPlaying=isPlaying;
isPlaying=false;
LOGV("closing, hWaveOut=%d", (int)hWaveOut);
LOGV("closing, hWaveOut=%lld", (long long)hWaveOut);
if(hWaveOut){
MMRESULT res;
if(isPlaying){
Expand Down
4 changes: 2 additions & 2 deletions os/windows/NetworkSocketWinsock.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ void NetworkSocketWinsock::Send(NetworkPacket *packet){
LOGE("Got EAGAIN but there's already a pending packet");
failed=true;
}else{
LOGV("Socket %d not ready to send", fd);
LOGV("Socket %lld not ready to send", (long long)fd);
pendingOutgoingPacket=new Buffer(packet->length);
pendingOutgoingPacket->CopyFrom(packet->data, 0, packet->length);
readyToSend=false;
Expand All @@ -153,7 +153,7 @@ void NetworkSocketWinsock::Send(NetworkPacket *packet){
LOGE("send returned less than packet length but there's already a pending packet");
failed=true;
}else{
LOGV("Socket %d not ready to send", fd);
LOGV("Socket %lld not ready to send", (long long)fd);
pendingOutgoingPacket=new Buffer(packet->length-res);
pendingOutgoingPacket->CopyFrom(packet->data+res, 0, packet->length-res);
readyToSend=false;
Expand Down

0 comments on commit 931f6a4

Please sign in to comment.