aboutsummaryrefslogtreecommitdiffstats
path: root/ext/-test-/bignum/import.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-06-07 02:41:45 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-06-07 02:41:45 +0000
commit147775ac2b21b6591d24cc2af23b8fccb3daf3fa (patch)
tree398a25985514d12284f74c5a9ed53adb9a3b85ee /ext/-test-/bignum/import.c
parent432321d78006d32af8f3cda0eb65c4c98ed603ae (diff)
downloadruby-147775ac2b21b6591d24cc2af23b8fccb3daf3fa.tar.gz
use NUM2SIZET and SIZET2NUM
* configure.in: revert r41106. size_t may not be unsigned * bignum.c (rb_absint_size_in_word, rb_int_export, rb_int_import): use NUM2SIZET() and SIZET2NUM() already defined in ruby/ruby.h. * ext/-test-/bignum/export.c (rb_int_export_m): ditto. * ext/-test-/bignum/import.c (rb_int_import_m): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41130 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/-test-/bignum/import.c')
-rw-r--r--ext/-test-/bignum/import.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/-test-/bignum/import.c b/ext/-test-/bignum/import.c
index 22cc86dcde..c50d855c44 100644
--- a/ext/-test-/bignum/import.c
+++ b/ext/-test-/bignum/import.c
@@ -7,8 +7,8 @@ rb_int_import_m(VALUE klass, VALUE sign, VALUE buf, VALUE wordcount, VALUE wordo
StringValue(buf);
return rb_int_import(NUM2INT(sign), RSTRING_PTR(buf),
- NUM2SIZE(wordcount), NUM2INT(wordorder), NUM2SIZE(wordsize),
- NUM2INT(endian), NUM2SIZE(nails));
+ NUM2SIZET(wordcount), NUM2INT(wordorder), NUM2SIZET(wordsize),
+ NUM2INT(endian), NUM2SIZET(nails));
}
void