diff options
author | li-elvin <li-elvin@6f19259b-4bc3-4df7-8a09-765794883524> | 2010-06-04 05:27:03 +0000 |
---|---|---|
committer | li-elvin <li-elvin@6f19259b-4bc3-4df7-8a09-765794883524> | 2010-06-04 05:27:03 +0000 |
commit | 5bf5fb30b4472530c48791ada2aa2eeba6a7a0c7 (patch) | |
tree | 2b989e681a1a642e45b5e1aaf5235603f05cb1b1 /MdeModulePkg/Bus/Scsi/ScsiDiskDxe | |
parent | 13ad1def34bfd3f8fbfa4bc0bf814518a9047b27 (diff) | |
download | edk2-5bf5fb30b4472530c48791ada2aa2eeba6a7a0c7.zip edk2-5bf5fb30b4472530c48791ada2aa2eeba6a7a0c7.tar.gz edk2-5bf5fb30b4472530c48791ada2aa2eeba6a7a0c7.tar.bz2 |
Change MaxBlock to HEX value to avoid GCC build failure.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10566 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdeModulePkg/Bus/Scsi/ScsiDiskDxe')
-rw-r--r-- | MdeModulePkg/Bus/Scsi/ScsiDiskDxe/ScsiDisk.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/MdeModulePkg/Bus/Scsi/ScsiDiskDxe/ScsiDisk.c b/MdeModulePkg/Bus/Scsi/ScsiDiskDxe/ScsiDisk.c index 7d6d7b0..1edff92 100644 --- a/MdeModulePkg/Bus/Scsi/ScsiDiskDxe/ScsiDisk.c +++ b/MdeModulePkg/Bus/Scsi/ScsiDiskDxe/ScsiDisk.c @@ -1618,9 +1618,9 @@ ScsiDiskReadSectors ( // limit the data bytes that can be transferred by one Read(10) or Read(16) Command
//
if (ScsiVersion < SCSI_COMMAND_VERSION_3) {
- MaxBlock = 65535;
+ MaxBlock = 0xFFFF;
} else {
- MaxBlock = 4294967295;
+ MaxBlock = 0xFFFFFFFF;
}
PtrBuffer = Buffer;
@@ -1742,9 +1742,9 @@ ScsiDiskWriteSectors ( // limit the data bytes that can be transferred by one Read(10) or Read(16) Command
//
if (ScsiVersion < SCSI_COMMAND_VERSION_3) {
- MaxBlock = 65535;
+ MaxBlock = 0xFFFF;
} else {
- MaxBlock = 4294967295;
+ MaxBlock = 0xFFFFFFFF;
}
PtrBuffer = Buffer;
|