From 4007b77e37fb2c8e304ef1bf77a8ec03db3e5feb Mon Sep 17 00:00:00 2001 From: Sean Bruno Date: Sat, 27 Sep 2014 10:57:34 +0000 Subject: [PATCH] Update factor for changes to types in primes, which is a dependency. Fixes build-fail on mips32 introduced at 272207. --- games/factor/factor.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/games/factor/factor.c b/games/factor/factor.c index 8b76c175e2a8..19fe830ca59d 100644 --- a/games/factor/factor.c +++ b/games/factor/factor.c @@ -69,6 +69,7 @@ __FBSDID("$FreeBSD$"); #include #include #include +#include #include #include #include @@ -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);