Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 27 Sep 2014 10:57:34 +0000 (UTC)
From:      Sean Bruno <sbruno@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r272210 - head/games/factor
Message-ID:  <201409271057.s8RAvYdF086338@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: sbruno
Date: Sat Sep 27 10:57:34 2014
New Revision: 272210
URL: http://svnweb.freebsd.org/changeset/base/272210

Log:
  Update factor for changes to types in primes, which is a dependency.
  
  Fixes build-fail on mips32 introduced at 272207.

Modified:
  head/games/factor/factor.c

Modified: head/games/factor/factor.c
==============================================================================
--- head/games/factor/factor.c	Sat Sep 27 09:57:34 2014	(r272209)
+++ head/games/factor/factor.c	Sat Sep 27 10:57:34 2014	(r272210)
@@ -69,6 +69,7 @@ __FBSDID("$FreeBSD$");
 #include <ctype.h>
 #include <err.h>
 #include <errno.h>
+#include <inttypes.h>
 #include <limits.h>
 #include <stdio.h>
 #include <stdlib.h>
@@ -227,7 +228,7 @@ pr_fact(BIGNUM *val)
 
 		/* Divide factor out until none are left. */
 		do {
-			printf(hflag ? " 0x%lx" : " %lu", *fact);
+			printf(hflag ? " 0x%" PRIx64 "" : " %" PRIu64 "", *fact);
 			BN_div_word(val, (BN_ULONG)*fact);
 		} while (BN_mod_word(val, (BN_ULONG)*fact) == 0);
 



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