On Wed, Jun 13, 2001 at 10:50:13AM -0700, Mr.Bad wrote:
> >>>>> "MJR" == Mark J Roberts <mjr at statesmean.com> writes:
>
> MJR> Here's the deal: I forwarded them a patch that fixes a bug in
> MJR> the BigInteger(byte[]) constructor a few months ago. They
> MJR> haven't applied it, and I haven't bothered them. I will,
> MJR> tonight.
>
> OK, well, in the mean time, can you send me the patch? I -might- be
> able to get it into the Debian libgcj package... which would mean that
> I could put a native Freenet into Debian (in addition to the bytecode
> one). Woohoo!
Good news--he says he'll commit it to the 3.0 branch tomorrow. I'll let
you know when it's in.
When I finally commented out the offending xmlrpc code, Fred compiled
and ran correctly, btw.
mjr::math$ cvs diff -u BigInteger.java
Index: BigInteger.java
===================================================================
RCS file: /cvs/gcc/gcc/libjava/java/math/BigInteger.java,v
retrieving revision 1.10.4.1
diff -u -r1.10.4.1 BigInteger.java
--- BigInteger.java 2001/03/03 07:27:59 1.10.4.1
+++ BigInteger.java 2001/06/13 18:28:24
@@ -220,12 +220,8 @@
private static int[] byteArrayToIntArray(byte[] bytes, int sign)
{
// Determine number of words needed.
- int[] words = new int[(bytes.length + 3) / 4 + 1];
+ int[] words = new int[bytes.length/4 + 1];
int nwords = words.length;
-
- // For simplicity, tack on an extra word of sign at the front,
- // it will be canonicalized out later. */
- words[--nwords] = sign;
// Create a int out of modulo 4 high order bytes.
int bptr = 0;
mjr::math$
> A note on that front: Debian is winding down towards a freeze, which
> means that the Fred that is in Debian at that time will be what's
> released and used for the next 12 months.
That's terrible! Think of the complaints we'll have to listen to, from
people who find out their version of Fred is two versions obsolete!
--
"Is our system--was it invented by scientists?"
"No. If scientists had invented it, they'd have tried it out first on hamsters."
Mark Roberts | mjr at statesmean.com
_______________________________________________
Devl mailing list
Devl at freenetproject.org
http://lists.freenetproject.org/mailman/listinfo/devl