summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorHiFiPhile <[email protected]>2025-01-31 16:31:47 +0100
committerHiFiPhile <[email protected]>2025-02-02 14:01:15 +0100
commit8d2310247c47160bf8de6e5f754284360ad7e937 (patch)
tree11086249f3fc579229b06d8005145fc84859a0fe /src
parent2707347decb0ea362fd0a6e4d58102c77f366429 (diff)
Fix CI.
Signed-off-by: HiFiPhile <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/class/msc/msc_device.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/class/msc/msc_device.c b/src/class/msc/msc_device.c
index e3fe5a078..72c3747fc 100644
--- a/src/class/msc/msc_device.c
+++ b/src/class/msc/msc_device.c
@@ -267,14 +267,14 @@ void tud_msc_async_io_done(int32_t bytes_processed) {
// Precheck to avoid queueing multiple RW done callback
TU_VERIFY(_mscd_itf.next_op != MSC_NEXT_OP_NONE,);
// Call usbd_edpt_xfer() in tud_task() to avoid racing condition
- usbd_defer_func(tud_msc_async_io_done_cb, (void*) bytes_processed, false);
+ usbd_defer_func(tud_msc_async_io_done_cb, (void*) (intptr_t)bytes_processed, false);
}
static void tud_msc_async_io_done_cb(void* bytes_processed) {
TU_VERIFY(_mscd_itf.next_op != MSC_NEXT_OP_NONE,);
uint8_t next_op = _mscd_itf.next_op;
_mscd_itf.next_op = MSC_NEXT_OP_NONE;
- int32_t nbytes = (int32_t)bytes_processed;
+ int32_t nbytes = (int32_t)(intptr_t)bytes_processed;
// READ10
if (next_op == MSC_NEXT_OP_READ10) {
proc_read10_next(&_mscd_itf, nbytes);