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 2c57ffc074..49d0a7525f 100644
--- a/random.c
+++ b/random.c
@@ -1066,7 +1066,7 @@ random_rand(int argc, VALUE *argv, VALUE obj)
}
else {
v = Qnil;
- NUM2LONG(vmax);
+ (void)NUM2LONG(vmax);
}
if (NIL_P(v)) {
VALUE mesg = rb_str_new_cstr("invalid argument - ");