]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/Library/DxeNetLib/Netbuffer.c
Fixed EBC build issues.
[mirror_edk2.git] / MdeModulePkg / Library / DxeNetLib / Netbuffer.c
index f32e31efbef56ca55f912deb1304df780939e441..a9de17f7e22f3d8f3af5d0b4d80c194bbbfd650f 100644 (file)
@@ -1711,7 +1711,7 @@ NetbufChecksum (
       // The checksum starts with an odd byte, swap\r
       // the checksum before added to total checksum\r
       //\r
-      BlockSum = NET_SWAP_SHORT (BlockSum);\r
+      BlockSum = (UINT16) NET_SWAP_SHORT (BlockSum);\r
     }\r
 \r
     TotalSum = NetAddChecksum (BlockSum, TotalSum);\r