We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Probable solution (since the other way around is UB):
diff --git a/src/interface.cpp b/src/interface.cpp index dba3678..0576553 100644 --- a/src/interface.cpp +++ b/src/interface.cpp @@ -154,6 +154,6 @@ void NetworkInterface::processPacket(const uint8_t* data, ret = write(fd, data, size); #endif } - if(ret != size) + if((size_t)ret != size) cerr << "partial packet write to tun\n"; }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Probable solution (since the other way around is UB):
The text was updated successfully, but these errors were encountered: