diff --git a/build.vc9/mpir-tests/run-tests.py b/build.vc9/mpir-tests/run-tests.py index 1cbd2492..f168f75f 100644 --- a/build.vc9/mpir-tests/run-tests.py +++ b/build.vc9/mpir-tests/run-tests.py @@ -68,15 +68,15 @@ for i in prj_list : if output : print(' ', output.decode(), end = '') else : - print("Build failure for %s" % i) + print("Build failure for {0}".format(i)) build_fail += 1 print(build_fail + run_ok + run_fail, "tests:") if build_fail > 0 : - print("\t%i failed to build" % build_fail) + print("\t{0} failed to build".format(build_fail)) if run_ok > 0 : - print("\t%i ran correctly" % run_ok) + print("\t{0} ran correctly".format(run_ok)) if run_fail > 0 : - print("\t%i failed" % run_fail) + print("\t{0} failed".format(run_fail)) if len(sys.argv) == 1 : try : input(".. completed - press ENTER") diff --git a/mpn/generic/invert.c b/mpn/generic/invert.c index bdfd2ba9..9804615d 100644 --- a/mpn/generic/invert.c +++ b/mpn/generic/invert.c @@ -33,6 +33,8 @@ MA 02110-1301, USA. */ #define ONE (mp_limb_t) 1 #define WRAP_AROUND_BOUND 1500 +#ifndef _MSC_VER + int test_invert (mp_ptr xp, mp_srcptr ap, mp_size_t n) { @@ -62,6 +64,8 @@ test_invert (mp_ptr xp, mp_srcptr ap, mp_size_t n) return res; } +#endif + /* Input: A = {ap, n} with most significant bit set. Output: X = B^n + {xp, n} where B = 2^GMP_NUMB_BITS.