diff options
author | Stephen Toub <stoub@microsoft.com> | 2017-02-22 00:03:59 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-02-22 00:03:59 +0300 |
commit | da677060e1a17faa8344d55040b374008a7dbdf8 (patch) | |
tree | f0a2c8bd87cfe56710b3b9989627a15b3182ec98 | |
parent | 675fc1dea8802dc8a040a91f845255339b2ed98b (diff) | |
parent | e73f761916ff8008b6725fa4e01471a3d39df8db (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.cs | 2 |
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; |