diff options
| author | Pieter Wuille <[email protected]> | 2013-05-08 16:02:47 -0700 |
|---|---|---|
| committer | Pieter Wuille <[email protected]> | 2013-05-08 16:02:47 -0700 |
| commit | 8c6bbb3a86aeb317c38b23611a9d31ffaf5641e1 (patch) | |
| tree | f2a09e20447e0d8c938fd28e762b59c2d93b2b79 /src | |
| parent | Merge pull request #2410 from gmaxwell/salvageharder (diff) | |
| parent | Specified base_uint component size (diff) | |
| download | discoin-8c6bbb3a86aeb317c38b23611a9d31ffaf5641e1.tar.xz discoin-8c6bbb3a86aeb317c38b23611a9d31ffaf5641e1.zip | |
Merge pull request #2629 from wyager/master
Specified base_uint component size
Diffstat (limited to 'src')
| -rw-r--r-- | src/uint256.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/uint256.h b/src/uint256.h index 8a9af8ba0..2a252c94f 100644 --- a/src/uint256.h +++ b/src/uint256.h @@ -8,6 +8,7 @@ #include <limits.h> #include <stdio.h> #include <string.h> +#include <inttypes.h> #include <string> #include <vector> @@ -20,14 +21,14 @@ inline int Testuint256AdHoc(std::vector<std::string> vArg); /** Base class without constructors for uint256 and uint160. - * This makes the compiler let u use it in a union. + * This makes the compiler let you use it in a union. */ template<unsigned int BITS> class base_uint { protected: enum { WIDTH=BITS/32 }; - unsigned int pn[WIDTH]; + uint32_t pn[WIDTH]; public: bool operator!() const |