diff --git a/Tools/Conf/Migration/R8Lib.c b/Tools/Conf/Migration/R8Lib.c index 9ee9d72667..6ef5f9100e 100644 --- a/Tools/Conf/Migration/R8Lib.c +++ b/Tools/Conf/Migration/R8Lib.c @@ -360,7 +360,7 @@ R8_HexStringToBuf ( } else { Byte = Buf[Idx / 2]; Byte &= 0x0F; - Byte |= Digit << 4; + Byte = (UINT8) (Byte | Digit << 4); } Buf[Idx / 2] = Byte;