pkgsrc/lang/mono/patches/patch-cb
2008-02-13 14:16:43 +00:00

12 lines
501 B
Text

$NetBSD: patch-cb,v 1.2 2008/02/13 14:16:43 kefren Exp $
--- mcs/class/corlib/Mono.Math/BigInteger.cs.orig 2008-02-05 14:20:27.000000000 +0200
+++ mcs/class/corlib/Mono.Math/BigInteger.cs 2008-02-05 14:20:57.000000000 +0200
@@ -1607,7 +1607,7 @@ namespace Mono.Math {
uint j = 1;
// Multiply and add
- for (; j < m.length; j++) {
+ for (; j < m.length && j < A.length; j++) {
c += (ulong)u_i * (ulong)*(mP++) + *(aSP++);
*(aDP++) = (uint)c;
c >>= 32;