scsicdrom: Fix compiler warning.

This commit is contained in:
joevt 2024-03-10 01:22:56 -08:00 committed by dingusdev
parent d3c913e384
commit 4be6bad526
1 changed files with 1 additions and 1 deletions

View File

@ -381,7 +381,7 @@ void ScsiCdrom::read_capacity_10()
return;
}
int last_lba = this->size_blocks - 1;
int last_lba = (int)this->size_blocks - 1;
WRITE_DWORD_BE_A(&this->data_buf[0], last_lba);
WRITE_DWORD_BE_A(&this->data_buf[4], this->block_size);