Skip to content

Commit 282dff1

Browse files
joevtdingusdev
authored andcommitted
scsihd: Fix compiler warnings.
1 parent a2b0ca4 commit 282dff1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

devices/common/scsi/scsihd.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ int ScsiHardDisk::get_rigid_geometry_page(uint8_t ctrl, uint8_t subpage, uint8_t
163163
std::memset(out_ptr, 0, page_size);
164164

165165
// num_cylinders = total_blocks / sectors_per_track / number_of_heads
166-
int num_cylinders = this->size_blocks / 64 / 4;
166+
uint64_t num_cylinders = this->size_blocks / 64 / 4;
167167

168168
// num_cylinders is a 24bit value!
169169
out_ptr[0] = (num_cylinders >> 16) & 0xFF;

0 commit comments

Comments
 (0)