HomeFreeBSD

vmem: Fix the gcc build

Description

vmem: Fix the gcc build

gcc complains when building libuvmem because the last two operands of ?:
in ORDER2SIZE and SIZE2ORDER have different signs. Add explicit casts
to address this.

Reported by: Jenkins
Reviewed by: alc, kib
MFC after: 1 week
Fixes: 1ecf01065b45 ("libuvmem: usermode port of vmem(9)")
Differential Revision: https://reviews.freebsd.org/D54268

Details

Provenance
markjAuthored on Dec 17 2025, 8:54 PM
Reviewer
rG1ecf01065b45: libuvmem: usermode port of vmem(9)
Differential Revision
D54268: vmem: Fix the gcc build
Parents
rGad7f49f98b1a: libpfctl: fix tstats address count
Branches
Unknown
Tags
Unknown