Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/corefx.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephen Toub <stoub@microsoft.com>2017-02-22 00:03:59 +0300
committerGitHub <noreply@github.com>2017-02-22 00:03:59 +0300
commitda677060e1a17faa8344d55040b374008a7dbdf8 (patch)
treef0a2c8bd87cfe56710b3b9989627a15b3182ec98
parent675fc1dea8802dc8a040a91f845255339b2ed98b (diff)
parente73f761916ff8008b6725fa4e01471a3d39df8db (diff)
Merge pull request #16356 from tarekgh/FixOverflowInSystemNet
Fix overflow exception in SystemNetworkInterface
-rw-r--r--src/System.Net.NetworkInformation/src/System/Net/NetworkInformation/SystemNetworkInterface.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/System.Net.NetworkInformation/src/System/Net/NetworkInformation/SystemNetworkInterface.cs b/src/System.Net.NetworkInformation/src/System/Net/NetworkInformation/SystemNetworkInterface.cs
index 784f64ec10..43bc90f701 100644
--- a/src/System.Net.NetworkInformation/src/System/Net/NetworkInformation/SystemNetworkInterface.cs
+++ b/src/System.Net.NetworkInformation/src/System/Net/NetworkInformation/SystemNetworkInterface.cs
@@ -150,7 +150,7 @@ namespace System.Net.NetworkInformation
_type = ipAdapterAddresses.type;
_operStatus = ipAdapterAddresses.operStatus;
- _speed = (long)ipAdapterAddresses.receiveLinkSpeed;
+ _speed = unchecked((long)ipAdapterAddresses.receiveLinkSpeed);
// API specific info.
_ipv6Index = ipAdapterAddresses.ipv6Index;