summaryrefslogtreecommitdiffstats
path: root/games/factor/factor.c
diff options
context:
space:
mode:
authorsbruno <sbruno@FreeBSD.org>2014-09-27 10:57:34 +0000
committersbruno <sbruno@FreeBSD.org>2014-09-27 10:57:34 +0000
commitac53ffbd58ec1112dd1fa9786a490a5c84f5ded6 (patch)
treef47a57e92037aa02ad98d07bcce68bc18ea965d8 /games/factor/factor.c
parentce833bbc1de223f266a43100cb21bfe23a8ca03d (diff)
downloadFreeBSD-src-ac53ffbd58ec1112dd1fa9786a490a5c84f5ded6.zip
FreeBSD-src-ac53ffbd58ec1112dd1fa9786a490a5c84f5ded6.tar.gz
Update factor for changes to types in primes, which is a dependency.
Fixes build-fail on mips32 introduced at 272207.
Diffstat (limited to 'games/factor/factor.c')
-rw-r--r--games/factor/factor.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/games/factor/factor.c b/games/factor/factor.c
index 8b76c17..19fe830 100644
--- a/games/factor/factor.c
+++ b/games/factor/factor.c
@@ -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);
OpenPOWER on IntegriCloud