pkgsrc/lang/ruby18-base/patches/patch-ba
taca ab4fba48de - Update to Ruby 1.8.3 with several fixes after its release
(see CHANGES.pkgsrc file).
- Merge databases/ruby-dbm, devel/ruby-zlib, security/ruby-digest and
  ruby-openssl, conflicting with these packages.
- Better handling for RI directories.
- Use pkgsrc's TOOLS framework.
2005-11-02 08:56:39 +00:00

22 lines
578 B
Text

$NetBSD: patch-ba,v 1.1 2005/11/02 08:56:40 taca Exp $
--- bignum.c.orig 2005-09-07 08:22:56.000000000 +0900
+++ bignum.c
@@ -46,7 +46,7 @@ bignew_1(klass, len, sign)
{
NEWOBJ(big, struct RBignum);
OBJSETUP(big, klass, T_BIGNUM);
- big->sign = (char)sign;
+ big->sign = sign?1:0;
big->len = len;
big->digits = ALLOC_N(BDIGIT, len);
@@ -1088,7 +1088,7 @@ bigsub(x, y)
}
}
- z = bignew(RBIGNUM(x)->len, (z == 0)?1:0);
+ z = bignew(RBIGNUM(x)->len, z==0);
zds = BDIGITS(z);
for (i = 0, num = 0; i < RBIGNUM(y)->len; i++) {