Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(1388)

Unified Diff: examples/socket/socket-options-ipv6.cc

Issue 337660043: Eliminate Visual Studio compiler warnings (Closed)
Patch Set: Updated patch to minimize changes Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: examples/socket/socket-options-ipv6.cc
===================================================================
--- a/examples/socket/socket-options-ipv6.cc
+++ b/examples/socket/socket-options-ipv6.cc
@@ -131,7 +131,7 @@
//Set socket options, it is also possible to set the options after the socket has been created/connected.
if (ipv6Tclass != 0)
{
- source->SetIpv6Tclass (ipv6Tclass);
+ source->SetIpv6Tclass (static_cast<uint8_t> (ipv6Tclass));
}
if (ipv6Hoplimit > 0)
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b