Skip to content

Commit 68986e9

Browse files
compile warning
1 parent c477c31 commit 68986e9

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

scsi.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -247,10 +247,10 @@ std::optional<scsi_response> scsi::send(const uint64_t lun, const uint8_t *const
247247
response.io.what.data.first[23] = 00; // LSB of 'MAXIMUM UNMAP LBA COUNT'
248248
response.io.what.data.first[27] = 8; // LSB of 'MAXIMUM UNMAP BLOCK DESCRIPTOR COUNT'
249249
response.io.what.data.first[31] = 8; // LSB of 'OPTIMAL UNMAP GRANULARITY'
250-
response.io.what.data.first[40] = MAX_WS_LEN >> 24; // 'MAXIMUM WRITE SAME LENGTH'
251-
response.io.what.data.first[41] = MAX_WS_LEN >> 16;
252-
response.io.what.data.first[42] = MAX_WS_LEN >> 8;
253-
response.io.what.data.first[43] = MAX_WS_LEN;
250+
response.io.what.data.first[40] = uint8_t(MAX_WS_LEN >> 24); // 'MAXIMUM WRITE SAME LENGTH'
251+
response.io.what.data.first[41] = uint8_t(MAX_WS_LEN >> 16);
252+
response.io.what.data.first[42] = uint8_t(MAX_WS_LEN >> 8);
253+
response.io.what.data.first[43] = uint8_t(MAX_WS_LEN);
254254
// ... set rest to 'not set'
255255
}
256256
else if (CDB[2] == 0xb1) { // block device characteristics

0 commit comments

Comments
 (0)