diff options
author | lloyd <[email protected]> | 2006-05-19 16:10:20 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2006-05-19 16:10:20 +0000 |
commit | 162174f7e4384a84d296d897d06789fd7f46001b (patch) | |
tree | 64a9bcbcf6d37432973cdd05b40de173549cdd16 /checks | |
parent | f61b8ece49d403a73855c88b51e2e45d1faa70b4 (diff) |
If we find a problem during the BigInt tests, print the data in hex
instead of decimal.
Diffstat (limited to 'checks')
-rw-r--r-- | checks/bigint.cpp | 10 |
1 files changed, 2 insertions, 8 deletions
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 |