summaryrefslogtreecommitdiff
path: root/time.c
diff options
context:
space:
mode:
authornaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-03-21 18:57:25 +0000
committernaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-03-21 18:57:25 +0000
commit74d7b281d3b8a7e023bf6b88af36bb6bc9d41e4c (patch)
tree02adaaaef129d7cc3ed17b1bd7001aa2765becec /time.c
parent69bedfca9e42f7391e304db55a9a559144a9d854 (diff)
fix typo
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54220 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'time.c')
-rw-r--r--time.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/time.c b/time.c
index fbe84a2000..ff6764e68d 100644
--- a/time.c
+++ b/time.c
@@ -403,7 +403,6 @@ wi_mul(wideint_t x, wideint_t y, wideint_t *z)
static wideval_t
wmul(wideval_t wx, wideval_t wy)
{
- VALUE x, z;
#if WIDEVALUE_IS_WIDER
if (FIXWV_P(wx) && FIXWV_P(wy)) {
wideint_t z;
@@ -423,7 +422,6 @@ wmul(wideval_t wx, wideval_t wy)
static wideval_t
wquo(wideval_t wx, wideval_t wy)
{
- VALUE x, y, ret;
#if WIDEVALUE_IS_WIDER
if (FIXWV_P(wx) && FIXWV_P(wy)) {
wideint_t a, b, c;
@@ -509,7 +507,7 @@ wdiv(wideval_t wx, wideval_t wy)
{
#if WIDEVALUE_IS_WIDER
wideval_t q;
- if (wdivmod0(wn, wd, &q, NULL)) return q;
+ if (wdivmod0(wx, wy, &q, NULL)) return q;
#endif
return v2w(div(wx, wy));
}
@@ -519,7 +517,7 @@ wmod(wideval_t wx, wideval_t wy)
{
#if WIDEVALUE_IS_WIDER
wideval_t r;
- if (wdivmod0(wn, wd, NULL, &r)) return r;
+ if (wdivmod0(wx, wy, NULL, &r)) return r;
#endif
return v2w(mod(wx, wy));
}