summaryrefslogtreecommitdiff
path: root/random.c
diff options
context:
space:
mode:
Diffstat (limited to 'random.c')
-rw-r--r--random.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/random.c b/random.c
index b6ed02992f..2da40b2bb6 100644
--- a/random.c
+++ b/random.c
@@ -1085,7 +1085,7 @@ random_rand(int argc, VALUE *argv, VALUE obj)
}
}
default:
- return rb_funcall2(v, id_plus, 1, &beg);
+ return rb_funcall2(beg, id_plus, 1, &v);
}
}