Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 5 May 2016 15:21:33 +0000 (UTC)
From:      Ed Maste <emaste@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r299120 - head/sys/kern
Message-ID:  <201605051521.u45FLXxJ061678@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: emaste
Date: Thu May  5 15:21:33 2016
New Revision: 299120
URL: https://svnweb.freebsd.org/changeset/base/299120

Log:
  Add explicit cast to fix mips and powerpc build after r299090
  
  Sponsored by:	The FreeBSD Foundation

Modified:
  head/sys/kern/subr_unit.c

Modified: head/sys/kern/subr_unit.c
==============================================================================
--- head/sys/kern/subr_unit.c	Thu May  5 15:07:40 2016	(r299119)
+++ head/sys/kern/subr_unit.c	Thu May  5 15:21:33 2016	(r299120)
@@ -1026,7 +1026,7 @@ main(int argc, char **argv)
 	printf("sizeof(struct unr) %zu\n", sizeof(struct unr));
 	printf("sizeof(struct unrb) %zu\n", sizeof(struct unrb));
 	printf("sizeof(struct unrhdr) %zu\n", sizeof(struct unrhdr));
-	printf("NBITS %lu\n", NBITS);
+	printf("NBITS %lu\n", (unsigned long)NBITS);
 	x = 1;
 	for (m = 0; m < count * reps; m++) {
 		j = random();



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201605051521.u45FLXxJ061678>