We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2707347 commit 1d2ddf1Copy full SHA for 1d2ddf1
src/class/msc/msc_device.c
@@ -267,7 +267,7 @@ void tud_msc_async_io_done(int32_t bytes_processed) {
267
// Precheck to avoid queueing multiple RW done callback
268
TU_VERIFY(_mscd_itf.next_op != MSC_NEXT_OP_NONE,);
269
// Call usbd_edpt_xfer() in tud_task() to avoid racing condition
270
- 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);
271
}
272
273
static void tud_msc_async_io_done_cb(void* bytes_processed) {
0 commit comments