]> git.proxmox.com Git - mirror_edk2.git/commitdiff
MdeModulePkg/UdfDxe: Fix operands of different size in bitwise OP
authorHao Wu <hao.a.wu@intel.com>
Thu, 14 Sep 2017 02:44:59 +0000 (10:44 +0800)
committerHao Wu <hao.a.wu@intel.com>
Tue, 19 Sep 2017 04:43:53 +0000 (12:43 +0800)
Cc: Paulo Alcantara <pcacjr@zytor.com>
Cc: Ruiyu Ni <ruiyu.ni@intel.com>
Cc: Star Zeng <star.zeng@intel.com>
Cc: Eric Dong <eric.dong@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Hao Wu <hao.a.wu@intel.com>
Reviewed-by: Paulo Alcantara <pcacjr@zytor.com>
Reviewed-by: Star Zeng <star.zeng@intel.com>
MdeModulePkg/Universal/Disk/UdfDxe/File.c
MdeModulePkg/Universal/Disk/UdfDxe/FileSystemOperations.c

index 82db75475b6d7120eb69a10c590687363991cb4b..4c2cf67fa31cbf0bd16fc37f4d28c33bd33b300d 100644 (file)
@@ -806,7 +806,7 @@ UdfGetInfo (
       }\r
 \r
       if (Index < 128) {\r
-        *String |= *(UINT8 *)(OstaCompressed + Index);\r
+        *String |= (CHAR16)(*(UINT8 *)(OstaCompressed + Index));\r
       }\r
 \r
       //\r
index 02a73a9eb9e4d86b1f926d42b06fcad822e6bcc9..f63e7e660b3adc6da5cbebf7d18a370813f3c759 100644 (file)
@@ -1782,7 +1782,7 @@ GetFileNameFromFid (
     }\r
 \r
     if (Index < Length) {\r
-      *FileName |= OstaCompressed[Index];\r
+      *FileName |= (CHAR16)(OstaCompressed[Index]);\r
     }\r
 \r
     FileName++;\r
@@ -1918,7 +1918,7 @@ ResolveSymlink (
         }\r
 \r
         if (Index < Length) {\r
-          *C |= *(UINT8 *)((UINT8 *)PathComp->ComponentIdentifier + Index);\r
+          *C |= (CHAR16)(*(UINT8 *)((UINT8 *)PathComp->ComponentIdentifier + Index));\r
         }\r
 \r
         C++;\r