diff options
Diffstat (limited to 'lib/libnetmap/nmport.c')
-rw-r--r-- | lib/libnetmap/nmport.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libnetmap/nmport.c b/lib/libnetmap/nmport.c index ec39172a0b1e..a3fd7e87100f 100644 --- a/lib/libnetmap/nmport.c +++ b/lib/libnetmap/nmport.c @@ -614,7 +614,7 @@ nmport_mmap(struct nmport_d *d) } memset(m, 0, sizeof(*m)); if (d->extmem != NULL) { - m->mem = (void *)d->extmem->nro_usrptr; + m->mem = (void *)((uintptr_t)d->extmem->nro_usrptr); m->size = d->extmem->nro_info.nr_memsize; m->is_extmem = 1; } else { |