summaryrefslogtreecommitdiff
path: root/src/class/msc/msc_device.c
diff options
context:
space:
mode:
authorhathach <[email protected]>2021-10-15 15:54:32 +0700
committerhathach <[email protected]>2021-10-15 15:54:32 +0700
commit7596cb30797c625a0523e0f68ef65296740538e0 (patch)
treeb84a5e9ab74caf759a69b95d7f963f518be1a571 /src/class/msc/msc_device.c
parent9da234cd7c73786624970206d7b7b7361275a6b7 (diff)
update some sense warning from -Wconversion
Diffstat (limited to 'src/class/msc/msc_device.c')
-rw-r--r--src/class/msc/msc_device.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/class/msc/msc_device.c b/src/class/msc/msc_device.c
index c54c4c189..81522be46 100644
--- a/src/class/msc/msc_device.c
+++ b/src/class/msc/msc_device.c
@@ -152,7 +152,7 @@ static inline uint16_t rdwr10_get_blocksize(msc_cbw_t const* cbw)
// invalid block count
if (block_count == 0) return 0;
- return cbw->total_bytes / block_count;
+ return (uint16_t) (cbw->total_bytes / block_count);
}
uint8_t rdwr10_validate_cmd(msc_cbw_t const* cbw)