diff options
author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-04-19 01:11:04 +0000 |
---|---|---|
committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-04-19 01:11:04 +0000 |
commit | 95de2b001247b5e8ccd89d5ba7225d42aafec1e5 (patch) | |
tree | c41b3bbde5e8c505e54317a1df9152d1dc63deef /internal.h | |
parent | 8233f969a28e03bf7771424cf5a893369a14e5df (diff) | |
download | ruby-95de2b001247b5e8ccd89d5ba7225d42aafec1e5.tar.gz |
* internal.h (struct RBignum): Use size_t for len.
* include/ruby/intern.h (rb_big_new): Use size_t instead of long to
specify the size of bignum.
(rb_big_resize): Ditto.
* bignum.c: Follow above changes.
* rational.c: Follow above changes.
* marshal.c: Follow above changes.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45636 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'internal.h')
-rw-r--r-- | internal.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/internal.h b/internal.h index 36424437f9..f93d3f7751 100644 --- a/internal.h +++ b/internal.h @@ -372,7 +372,7 @@ struct RBignum { struct RBasic basic; union { struct { - long len; + size_t len; BDIGIT *digits; } heap; BDIGIT ary[BIGNUM_EMBED_LEN_MAX]; |