From 2f9e57916663b5d75a6a97c2682c101dcfe3db4c Mon Sep 17 00:00:00 2001 From: John Baldwin Date: Thu, 14 Jan 2016 15:51:13 +0000 Subject: [PATCH] Fix building with GCC since PAGE_MASK is signed on i386. Reviewed by: ngie MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D4772 --- lib/libkvm/kvm_i386.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/libkvm/kvm_i386.h b/lib/libkvm/kvm_i386.h index 2949e6893024..51eb6f8f7f70 100644 --- a/lib/libkvm/kvm_i386.h +++ b/lib/libkvm/kvm_i386.h @@ -70,7 +70,7 @@ _Static_assert(NBPDR == I386_NBPDR, "NBPDR mismatch"); _Static_assert(PG_V == I386_PG_V, "PG_V mismatch"); _Static_assert(PG_PS == I386_PG_PS, "PG_PS mismatch"); -_Static_assert(PG_FRAME == I386_PG_FRAME, "PG_FRAME mismatch"); +_Static_assert((u_int)PG_FRAME == I386_PG_FRAME, "PG_FRAME mismatch"); _Static_assert(PG_PS_FRAME == I386_PG_PS_FRAME, "PG_PS_FRAME mismatch"); #endif