X-Git-Url: https://git.novaco.in/?a=blobdiff_plain;f=src%2Fuint256.h;h=cfc2eb128eba49aaf5cdba3c3fb5b5be0f3d3ca2;hb=6b8de05d0a6696dff4b7dccec5b74889f3cdc486;hp=783e7069e9c86c1840e2596e7af0ec3c85131798;hpb=01a196e08db49d83cf6c5abd8a799c56dcfef503;p=novacoin.git diff --git a/src/uint256.h b/src/uint256.h index 783e706..cfc2eb1 100644 --- a/src/uint256.h +++ b/src/uint256.h @@ -19,8 +19,9 @@ inline int Testuint256AdHoc(std::vector vArg); -// We have to keep a separate base class without constructors -// so the compiler will let us use it in a union +/** Base class without constructors for uint256 and uint160. + * This makes the compiler let u use it in a union. + */ template class base_uint { @@ -393,6 +394,7 @@ typedef base_uint<256> base_uint256; // uint160 // +/** 160-bit unsigned integer */ class uint160 : public base_uint160 { public: @@ -507,6 +509,7 @@ inline const uint160 operator-(const uint160& a, const uint160& b) { return // uint256 // +/** 256-bit unsigned integer */ class uint256 : public base_uint256 { public: