]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
[libnetmap] Fix 32 bit compilation under gcc-6.4
authoradrian <adrian@FreeBSD.org>
Mon, 2 Nov 2020 15:01:37 +0000 (15:01 +0000)
committeradrian <adrian@FreeBSD.org>
Mon, 2 Nov 2020 15:01:37 +0000 (15:01 +0000)
commite384356b8d0040f8084e7492802932471056ffe0
tree9d8a88f01e8a76e92da69a6a429c3deb31457a62
parentb42e407ee2bea527e7976483f93dd3918f87d9f1
[libnetmap] Fix 32 bit compilation under gcc-6.4

Use uintptr_t to cast a uint64_t to a pointer type.
Yeah, it isn't technically correct for platforms with pointers
> 64 bits, but it's fine here.

This fixes 32 bit compat library builds on amd64 and also
mips32 builds.

Reviewed by: imp
Differential Revision: https://reviews.freebsd.org/D26790
lib/libnetmap/nmreq.c