diff options
-rw-r--r-- | MdeModulePkg/Bus/Pci/SataControllerDxe/SataController.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/MdeModulePkg/Bus/Pci/SataControllerDxe/SataController.c b/MdeModulePkg/Bus/Pci/SataControllerDxe/SataController.c index d47e918..86233bb 100644 --- a/MdeModulePkg/Bus/Pci/SataControllerDxe/SataController.c +++ b/MdeModulePkg/Bus/Pci/SataControllerDxe/SataController.c @@ -483,7 +483,7 @@ SataControllerStart ( }
MaxPortNumber = 31;
while (MaxPortNumber > 0) {
- if (Data32 & (1 << MaxPortNumber)) {
+ if ((Data32 & ((UINT32)1 << MaxPortNumber)) != 0) {
break;
}
MaxPortNumber--;
|