diff options
author | mdkinney <mdkinney@6f19259b-4bc3-4df7-8a09-765794883524> | 2009-06-20 17:05:16 +0000 |
---|---|---|
committer | mdkinney <mdkinney@6f19259b-4bc3-4df7-8a09-765794883524> | 2009-06-20 17:05:16 +0000 |
commit | a00ec39b52224a40bf9a0a813b69cb43e14407a8 (patch) | |
tree | 9c7f790663515a52991c00acaf442aefae23ca3f /Nt32Pkg/WinNtSerialIoDxe | |
parent | e189fded67ad50140d2c8171aa38842767f5d42e (diff) | |
download | edk2-platforms-a00ec39b52224a40bf9a0a813b69cb43e14407a8.tar.xz |
Fix ICC compatibility issues
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@8616 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'Nt32Pkg/WinNtSerialIoDxe')
-rw-r--r-- | Nt32Pkg/WinNtSerialIoDxe/WinNtSerialIo.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/Nt32Pkg/WinNtSerialIoDxe/WinNtSerialIo.c b/Nt32Pkg/WinNtSerialIoDxe/WinNtSerialIo.c index e12f14dc29..5a55fa428c 100644 --- a/Nt32Pkg/WinNtSerialIoDxe/WinNtSerialIo.c +++ b/Nt32Pkg/WinNtSerialIoDxe/WinNtSerialIo.c @@ -192,7 +192,7 @@ Returns: DevicePathNodeLength((EFI_DEVICE_PATH_PROTOCOL *)UartNode) != sizeof(UART_DEVICE_PATH)) {
goto Error;
}
- if (UartNode->BaudRate < 0 || UartNode->BaudRate > SERIAL_PORT_MAX_BAUD_RATE) {
+ if ( UartNode->BaudRate > SERIAL_PORT_MAX_BAUD_RATE) {
goto Error;
}
if (UartNode->Parity < NoParity || UartNode->Parity > SpaceParity) {
@@ -339,9 +339,9 @@ Returns: Node.BaudRate,
SerialIo->Mode->ReceiveFifoDepth,
SerialIo->Mode->Timeout,
- Node.Parity,
+ (EFI_PARITY_TYPE)Node.Parity,
Node.DataBits,
- Node.StopBits
+ (EFI_STOP_BITS_TYPE)Node.StopBits
);
}
break;
@@ -699,9 +699,9 @@ Returns: This->Mode->BaudRate,
This->Mode->ReceiveFifoDepth,
This->Mode->Timeout,
- This->Mode->Parity,
+ (EFI_PARITY_TYPE)This->Mode->Parity,
(UINT8) This->Mode->DataBits,
- This->Mode->StopBits
+ (EFI_STOP_BITS_TYPE)This->Mode->StopBits
);
}
@@ -774,7 +774,7 @@ Returns: }
if (Parity == DefaultParity) {
- Parity = FixedPcdGet8 (PcdUartDefaultParity);
+ Parity = (EFI_PARITY_TYPE) (FixedPcdGet8 (PcdUartDefaultParity));
}
if (DataBits == 0) {
|