diff options
author | eric_tian <eric_tian@6f19259b-4bc3-4df7-8a09-765794883524> | 2009-02-24 07:57:25 +0000 |
---|---|---|
committer | eric_tian <eric_tian@6f19259b-4bc3-4df7-8a09-765794883524> | 2009-02-24 07:57:25 +0000 |
commit | d5893e0b04e2ff7182dd7af08af13f046e3ede25 (patch) | |
tree | 3411a9082afac5d13544415ecc8e9767a7822c8a /MdeModulePkg | |
parent | 76f1dde2c43e02a78af3d09aea48fa316d283a62 (diff) | |
download | edk2-platforms-d5893e0b04e2ff7182dd7af08af13f046e3ede25.tar.xz |
fix the bug of calculating subnetmask prefix length. It is a regression issue, which incorrectly take "&" operation as "&&"
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@7639 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdeModulePkg')
-rw-r--r-- | MdeModulePkg/Universal/Network/IScsiDxe/IScsiMisc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/MdeModulePkg/Universal/Network/IScsiDxe/IScsiMisc.c b/MdeModulePkg/Universal/Network/IScsiDxe/IScsiMisc.c index 3a727099e4..dd110dfb30 100644 --- a/MdeModulePkg/Universal/Network/IScsiDxe/IScsiMisc.c +++ b/MdeModulePkg/Universal/Network/IScsiDxe/IScsiMisc.c @@ -94,7 +94,7 @@ IScsiGetSubnetMaskPrefixLength ( //
ReverseMask = ~ReverseMask;
- if ((ReverseMask != 0) & ((ReverseMask + 1) != 0)) {
+ if ((ReverseMask & (ReverseMask + 1)) != 0) {
return 0;
}
|