File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -267,14 +267,14 @@ void tud_msc_async_io_done(int32_t bytes_processed) {
267
267
// Precheck to avoid queueing multiple RW done callback
268
268
TU_VERIFY (_mscd_itf .next_op != MSC_NEXT_OP_NONE ,);
269
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);
270
+ usbd_defer_func (tud_msc_async_io_done_cb , (void * ) ( intptr_t ) bytes_processed , false);
271
271
}
272
272
273
273
static void tud_msc_async_io_done_cb (void * bytes_processed ) {
274
274
TU_VERIFY (_mscd_itf .next_op != MSC_NEXT_OP_NONE ,);
275
275
uint8_t next_op = _mscd_itf .next_op ;
276
276
_mscd_itf .next_op = MSC_NEXT_OP_NONE ;
277
- int32_t nbytes = (int32_t )bytes_processed ;
277
+ int32_t nbytes = (int32_t )( intptr_t ) bytes_processed ;
278
278
// READ10
279
279
if (next_op == MSC_NEXT_OP_READ10 ) {
280
280
proc_read10_next (& _mscd_itf , nbytes );
You can’t perform that action at this time.
0 commit comments