summaryrefslogtreecommitdiff
path: root/ext/bigdecimal
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-05-15 11:55:52 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-05-15 11:55:52 +0000
commit3a47cf3395dd4c4fe8bdd5df13aab698f2ca314b (patch)
treec4a278220ba8141b829c5c7b0777c1049cfe413c /ext/bigdecimal
parent39da1b63699faf30c86e753e193c29b81b16136d (diff)
downloadruby-3a47cf3395dd4c4fe8bdd5df13aab698f2ca314b.tar.gz
* remove trailing spaces.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31573 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/bigdecimal')
-rw-r--r--ext/bigdecimal/bigdecimal.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/ext/bigdecimal/bigdecimal.c b/ext/bigdecimal/bigdecimal.c
index 83d090280d..7f64288647 100644
--- a/ext/bigdecimal/bigdecimal.c
+++ b/ext/bigdecimal/bigdecimal.c
@@ -4645,9 +4645,9 @@ VpMidRound(Real *y, unsigned short f, ssize_t nf)
/* so the representation used (in y->frac) is an array of BDIGIT, where
each BDIGIT contains a value between 0 and BASE-1, consisting of BASE_FIG
decimal places.
-
+
(that numbers of decimal places are typed as ssize_t is somewhat confusing)
-
+
nf is now position (in decimal places) of the digit from the start of
the array.
ix is the position (in BDIGITS) of the BDIGIT containing the decimal digit,
@@ -4666,7 +4666,7 @@ VpMidRound(Real *y, unsigned short f, ssize_t nf)
fracf = (v % (shifter * 10) > 0);
fracf_1further = ((v % shifter) > 0);
-
+
v /= shifter;
div = v / 10;
v = v - div*10;
@@ -4687,12 +4687,12 @@ VpMidRound(Real *y, unsigned short f, ssize_t nf)
break;
}
}
-
+
/* now fracf = does any positive digit exist under the rounding position?
now fracf_1further = does any positive digit exist under one further than the
rounding position?
now v = the first digit under the rounding position */
-
+
/* drop digits after pointed digit */
memset(y->frac+ix+1, 0, (y->Prec - (ix+1)) * sizeof(BDIGIT));