diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-11-13 14:47:31 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-11-13 14:47:31 +0000 |
commit | 416778c5d80230183ef06a49bb58145a7480ed48 (patch) | |
tree | d503ffa5c057a8d2445f42f8d59977e326130ff2 /ext/dbm/dbm.c | |
parent | a0146d1e8708eb372e415ac733066bee34e3ef36 (diff) |
* ext/dbm/extconf.rb: use convertible_int.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33738 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/dbm/dbm.c')
-rw-r--r-- | ext/dbm/dbm.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/ext/dbm/dbm.c b/ext/dbm/dbm.c index 1850b28c2f..3409d8faa0 100644 --- a/ext/dbm/dbm.c +++ b/ext/dbm/dbm.c @@ -21,12 +21,11 @@ #include <fcntl.h> #include <errno.h> -#if SIZEOF_DSIZE > SIZEOF_INT -# define DSIZE_TYPE long +#define DSIZE_TYPE TYPEOF_DATUM_DSIZE +#if SIZEOF_DATUM_DSIZE > SIZEOF_INT # define RSTRING_DSIZE(s) RSTRING_LEN(s) # define TOO_LONG(n) 0 #else -# define DSIZE_TYPE int # define RSTRING_DSIZE(s) RSTRING_LENINT(s) # define TOO_LONG(n) ((long)(+(DSIZE_TYPE)(n)) != (n)) #endif |