aboutsummaryrefslogtreecommitdiff
path: root/src/bignum.h
diff options
context:
space:
mode:
authorfanquake <fanquake@gmail.com>2012-12-17 18:09:53 +0800
committerfanquake <fanquake@gmail.com>2012-12-17 18:09:53 +0800
commitf0bf5fb2453a8c6a089cf0e4e000558efe97620a (patch)
tree7dbaebd2ac7768d918e6a358d3be04ef682c4989 /src/bignum.h
parentda8c5c9f4ebedfd50e6c31cee3ec0b1a25f930b7 (diff)
Fix two typos in main.h
Break one long comment down into 3 lines so it's readable.
Diffstat (limited to 'src/bignum.h')
-rw-r--r--src/bignum.h4
1 files changed, 3 insertions, 1 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;