From 5fdd1251a87a0938f48e88970ae976e360c6e09f Mon Sep 17 00:00:00 2001 From: William Yager Date: Tue, 7 May 2013 20:03:17 -0500 Subject: Specified base_uint component size A base_uint used to be made of an array of unsigned ints. This works fine on most platforms, but might not work on certain present or future platforms. The code breaks if an unsigned int is 16 or 64 bits, so it's important to be specific. Also changed "u" to "you". --- src/uint256.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/uint256.h') diff --git a/src/uint256.h b/src/uint256.h index 8a9af8ba04..2a252c94f3 100644 --- a/src/uint256.h +++ b/src/uint256.h @@ -8,6 +8,7 @@ #include #include #include +#include #include #include @@ -20,14 +21,14 @@ inline int Testuint256AdHoc(std::vector 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 class base_uint { protected: enum { WIDTH=BITS/32 }; - unsigned int pn[WIDTH]; + uint32_t pn[WIDTH]; public: bool operator!() const -- cgit v1.2.3