Skip to content

Commit 549bee9

Browse files
authored
Merge pull request hathach#1819 from hathach/fix-ncm-warning
fix ncm warning
2 parents 301b6af + d0ca6ca commit 549bee9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/class/net/ncm_device.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -392,7 +392,7 @@ bool netd_control_xfer_cb(uint8_t rhport, uint8_t stage, tusb_control_request_t
392392

393393
if (NCM_GET_NTB_PARAMETERS == request->bRequest)
394394
{
395-
tud_control_xfer(rhport, request, (void*)&ntb_parameters, sizeof(ntb_parameters));
395+
tud_control_xfer(rhport, request, (void*)(uintptr_t) &ntb_parameters, sizeof(ntb_parameters));
396396
}
397397

398398
break;

0 commit comments

Comments
 (0)