]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/Universal/Network/Ip4Dxe/Ip4Output.c
Make MdeModulePkg GCC clean.
[mirror_edk2.git] / MdeModulePkg / Universal / Network / Ip4Dxe / Ip4Output.c
index 0232bfedda22a5de5f35ec43375cdda0aaa11f66..8aec74ddce98cb372a2695c74ac81543a27579dc 100644 (file)
@@ -306,7 +306,7 @@ Ip4Output (
   // them. Tag each fragment other than the first one as spawn from it.\r
   //\r
   Mtu            = IpSb->SnpMode.MaxPacketSize;\r
-  HeadLen        = sizeof (IP4_HEAD) + (OptLen + 3) &~0x03;\r
+  HeadLen        = sizeof (IP4_HEAD) + ((OptLen + 3) & (~0x03));\r
   Head->Id       = mIp4Id++;\r
 \r
   if (Packet->TotalSize + HeadLen > Mtu) {\r