MdeModulePkg/UdfDxe: Fix operands of different size in bitwise OP

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>
This commit is contained in:
Hao Wu 2017-09-14 10:44:59 +08:00
parent 3fa40d588a
commit fedec0a38e
2 changed files with 3 additions and 3 deletions

View File

@ -806,7 +806,7 @@ UdfGetInfo (
}
if (Index < 128) {
*String |= *(UINT8 *)(OstaCompressed + Index);
*String |= (CHAR16)(*(UINT8 *)(OstaCompressed + Index));
}
//

View File

@ -1782,7 +1782,7 @@ GetFileNameFromFid (
}
if (Index < Length) {
*FileName |= OstaCompressed[Index];
*FileName |= (CHAR16)(OstaCompressed[Index]);
}
FileName++;
@ -1918,7 +1918,7 @@ ResolveSymlink (
}
if (Index < Length) {
*C |= *(UINT8 *)((UINT8 *)PathComp->ComponentIdentifier + Index);
*C |= (CHAR16)(*(UINT8 *)((UINT8 *)PathComp->ComponentIdentifier + Index));
}
C++;