Skip to content

Commit

Permalink
Merge pull request #2106 from block8437/development
Browse files Browse the repository at this point in the history
Fixed a typo where the value of outBytesWritten was being clamped incorrectly.
  • Loading branch information
Areloch committed Apr 4, 2018
1 parent 840d53c commit 27446b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Engine/source/platform/platformNet.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1706,7 +1706,7 @@ Net::Error Net::send(NetSocket handleFd, const U8 *buffer, S32 bufferSize, S32 *

if (outBytesWritten)
{
*outBytesWritten = outBytesWritten < 0 ? 0 : bytesWritten;
*outBytesWritten = *outBytesWritten < 0 ? 0 : bytesWritten;
}

return PlatformNetState::getLastError();
Expand Down

0 comments on commit 27446b1

Please sign in to comment.