mirror of
https://github.com/opnsense/src.git
synced 2026-06-14 19:20:18 -04:00
Some compilers issue a warning when wider integer is casted to narrow
pointer. Supposedly shut down the warning by casting through uintptr_t. Reported by: ian
This commit is contained in:
parent
e7a87117d3
commit
44d95698ba
1 changed files with 2 additions and 2 deletions
|
|
@ -66,8 +66,8 @@ _bus_dmamap_load_vlist(bus_dma_tag_t dmat, bus_dmamap_t map,
|
|||
error = 0;
|
||||
for (; sglist_cnt > 0; sglist_cnt--, list++) {
|
||||
error = _bus_dmamap_load_buffer(dmat, map,
|
||||
(void *)list->ds_addr, list->ds_len, pmap, flags, NULL,
|
||||
nsegs);
|
||||
(void *)(uintptr_t)list->ds_addr, list->ds_len, pmap,
|
||||
flags, NULL, nsegs);
|
||||
if (error)
|
||||
break;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue