Project

General

Profile

Bug #4223 » patch-bug4223.txt

metanest (Makoto Kishimoto), 07/07/2011 09:39 PM

 
1
diff --git a/bignum.c b/bignum.c
2
index 809b164..487eb59 100644
3
--- a/bignum.c
4
+++ b/bignum.c
5
@@ -1805,6 +1805,8 @@ bigadd_int(VALUE x, long y)
6
     BDIGIT_DBL num;
7
     long i;
8
 
9
+    RB_GC_GUARD(x);
10
+
11
     xds = BDIGITS(x);
12
     xn = RBIGNUM_LEN(x);
13