diff options
author | Gavin Andresen <gavinandresen@gmail.com> | 2012-12-18 09:53:30 -0800 |
---|---|---|
committer | Gavin Andresen <gavinandresen@gmail.com> | 2012-12-18 09:53:30 -0800 |
commit | 6940626d08e313c5e1cd99c63aeca9da45d5b7a4 (patch) | |
tree | 7dbaebd2ac7768d918e6a358d3be04ef682c4989 | |
parent | da8c5c9f4ebedfd50e6c31cee3ec0b1a25f930b7 (diff) | |
parent | f0bf5fb2453a8c6a089cf0e4e000558efe97620a (diff) |
Merge pull request #2112 from fanquake/typos
Fix two typos in main.h
-rw-r--r-- | src/bignum.h | 4 | ||||
-rw-r--r-- | src/main.h | 2 |
2 files changed, 4 insertions, 2 deletions
diff --git a/src/bignum.h b/src/bignum.h index ad98613f5f..1ee7a99934 100644 --- a/src/bignum.h +++ b/src/bignum.h @@ -131,7 +131,9 @@ public: if (sn < (int64)0) { - // Since the minimum signed integer cannot be represented as positive so long as its type is signed, and it's not well-defined what happens if you make it unsigned before negating it, we instead increment the negative integer by 1, convert it, then increment the (now positive) unsigned integer by 1 to compensate + // Since the minimum signed integer cannot be represented as positive so long as its type is signed, + // and it's not well-defined what happens if you make it unsigned before negating it, + // we instead increment the negative integer by 1, convert it, then increment the (now positive) unsigned integer by 1 to compensate n = -(sn + 1); ++n; fNegative = true; diff --git a/src/main.h b/src/main.h index fdaec3469e..8bceffbaf9 100644 --- a/src/main.h +++ b/src/main.h @@ -152,7 +152,7 @@ bool CheckProofOfWork(uint256 hash, unsigned int nBits); unsigned int ComputeMinWork(unsigned int nBase, int64 nTime); /** Get the number of active peers */ int GetNumBlocksOfPeers(); -/** Check whether we are doin an inital block download (synchronizing from disk or network) */ +/** Check whether we are doing an initial block download (synchronizing from disk or network) */ bool IsInitialBlockDownload(); /** Format a string that describes several potential problems detected by the core */ std::string GetWarnings(std::string strFor); |