mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* random.c (rb_f_rand): type fix.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3426 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
f758195486
commit
e474ae6338
2 changed files with 4 additions and 4 deletions
2
random.c
2
random.c
|
@ -230,7 +230,7 @@ rb_f_rand(argc, argv, obj)
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
vmax = rb_Integer(vmax);
|
vmax = rb_Integer(vmax);
|
||||||
if (TYPE(vmax) == T_BIGNUM) goto bignum:
|
if (TYPE(vmax) == T_BIGNUM) goto bignum;
|
||||||
case T_FIXNUM:
|
case T_FIXNUM:
|
||||||
max = NUM2LONG(vmax);
|
max = NUM2LONG(vmax);
|
||||||
break;
|
break;
|
||||||
|
|
|
@ -1,11 +1,11 @@
|
||||||
#define RUBY_VERSION "1.8.0"
|
#define RUBY_VERSION "1.8.0"
|
||||||
#define RUBY_RELEASE_DATE "2003-01-30"
|
#define RUBY_RELEASE_DATE "2003-01-31"
|
||||||
#define RUBY_VERSION_CODE 180
|
#define RUBY_VERSION_CODE 180
|
||||||
#define RUBY_RELEASE_CODE 20030130
|
#define RUBY_RELEASE_CODE 20030131
|
||||||
|
|
||||||
#define RUBY_VERSION_MAJOR 1
|
#define RUBY_VERSION_MAJOR 1
|
||||||
#define RUBY_VERSION_MINOR 8
|
#define RUBY_VERSION_MINOR 8
|
||||||
#define RUBY_VERSION_TEENY 0
|
#define RUBY_VERSION_TEENY 0
|
||||||
#define RUBY_RELEASE_YEAR 2003
|
#define RUBY_RELEASE_YEAR 2003
|
||||||
#define RUBY_RELEASE_MONTH 01
|
#define RUBY_RELEASE_MONTH 01
|
||||||
#define RUBY_RELEASE_DAY 30
|
#define RUBY_RELEASE_DAY 31
|
||||||
|
|
Loading…
Reference in a new issue