From 162174f7e4384a84d296d897d06789fd7f46001b Mon Sep 17 00:00:00 2001 From: lloyd Date: Fri, 19 May 2006 16:10:20 +0000 Subject: If we find a problem during the BigInt tests, print the data in hex instead of decimal. --- checks/bigint.cpp | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'checks/bigint.cpp') diff --git a/checks/bigint.cpp b/checks/bigint.cpp index 305e23f54..b4e8a574d 100644 --- a/checks/bigint.cpp +++ b/checks/bigint.cpp @@ -138,19 +138,13 @@ u32bit results(std::string op, std::cout << std::endl; std::cout << "ERROR: " << op1 << std::endl; -#if 1 - std::cout << "a = " << a << std::endl; - std::cout << "b = " << b << std::endl; - std::cout << "c = " << c << std::endl; - std::cout << "d = " << d << std::endl; - std::cout << "e = " << e << std::endl; -#else + std::cout << "a = " << std::hex << a << std::endl; std::cout << "b = " << std::hex << b << std::endl; std::cout << "c = " << std::hex << c << std::endl; std::cout << "d = " << std::hex << d << std::endl; std::cout << "e = " << std::hex << e << std::endl; -#endif + if(d != e) { std::cout << "ERROR: " << op1 << " | " << op2 -- cgit v1.2.3