aboutsummaryrefslogtreecommitdiffstats
path: root/bignum.c
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-04-30 09:12:11 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-04-30 09:12:11 +0000
commit82baf3973f6a691038c0d65d4f282a8a2485dc42 (patch)
tree9893cea1cb3ca06f425fb7053efc956abfe496f2 /bignum.c
parente5d9d67b43fd935802817d8a670e8606d15a61b0 (diff)
downloadruby-82baf3973f6a691038c0d65d4f282a8a2485dc42.tar.gz
Define Integer#GMP_VERSION.
* bignum.c (Init_Bignum): Define Integer#GMP_VERSION. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54840 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'bignum.c')
-rw-r--r--bignum.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/bignum.c b/bignum.c
index c23f439087..048568d035 100644
--- a/bignum.c
+++ b/bignum.c
@@ -6890,6 +6890,7 @@ Init_Bignum(void)
#ifdef USE_GMP
/* The version of loaded GMP. */
rb_define_const(rb_cBignum, "GMP_VERSION", rb_sprintf("GMP %s", gmp_version));
+ rb_define_const(rb_cInteger, "GMP_VERSION", rb_sprintf("GMP %s", gmp_version));
#endif
power_cache_init();