~ubuntu-branches/ubuntu/hardy/ruby1.8/hardy-updates

« back to all changes in this revision

Viewing changes to debian/patches/140_bignum_shift.patch

  • Committer: Bazaar Package Importer
  • Author(s): akira yamada
  • Date: 2007-03-13 22:11:58 UTC
  • mfrom: (1.1.5 upstream)
  • Revision ID: james.westby@ubuntu.com-20070313221158-h3oql37brlaf2go2
Tags: 1.8.6-1
* new upstream version, 1.8.6.
* libruby1.8 conflicts with libopenssl-ruby1.8 (< 1.8.6) (closes: #410018)
* changed packaging style to cdbs from dbs.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
--- ruby-1.8.5/bignum.c 9 Sep 2006 15:27:34 -0000       1.100.2.23
2
 
+++ ruby-1.8.5/bignum.c 7 Oct 2006 15:48:44 -0000       1.100.2.24
3
 
@@ -1885,6 +1885,10 @@
4
 
     }
5
 
     xds = BDIGITS(x);
6
 
     i = RBIGNUM(x)->len; j = i - s1;
7
 
+    if (j == 0) {
8
 
+       if (RBIGNUM(x)->sign) return INT2FIX(0);
9
 
+       else return INT2FIX(-1);
10
 
+    }
11
 
     z = bignew(j, RBIGNUM(x)->sign);
12
 
     if (!RBIGNUM(x)->sign) {
13
 
        num = ((BDIGIT_DBL)~0) << BITSPERDIG;