[Fwd: Re: jigdo-0.7.0 broken on amd64]

Attila Nagy bra at fsn.hu
Tue Feb 3 00:39:23 PST 2004


Kris Kennaway wrote:
> http://bento.freebsd.org/errorlogs/amd64-5-latest/jigdo-0.7.0.log
> Can you please investigate and/or report to the developers?
I've attached a patch which should correct the problem. Could you please
test it?

Thanks,
-- 
Attila Nagy                                   e-mail: Attila.Nagy at fsn.hu
Free Software Network (FSN.HU)           phone @work: +361 210 1415/127
ISOs: http://www.fsn.hu/?f=download            cell.: +3630 306 6758
-------------- next part --------------
--- src.orig/mktemplate.cc
+++ src/mktemplate.cc
@@ -1,4 +1,4 @@
-/* $Id: mktemplate.cc,v 1.92 2003/04/27 15:57:21 richard Exp $ -*- C++ -*-
+/* $Id: mktemplate.cc,v 1.93 2003/05/06 19:12:14 richard Exp $ -*- C++ -*-
   __   _
   |_) /|  Copyright (C) 2001-2002 Richard Atterer
   | \/¯|  <richard at atterer.net>
@@ -643,7 +643,7 @@
     Paranoid(*data + len <= bufferLength);
     rsum->addBack(buf + *data, len);
     *data += len; off += len; *n -= len;
-    *rsumBack = modAdd(*rsumBack, len, bufferLength);
+    *rsumBack = modAdd(*rsumBack, implicit_cast<size_t>(len), bufferLength);
     Paranoid(off == nextEvent || off == nextAlignedOff);
 #   if DEBUG
     for (unsigned i = 0; i < len; ++i) {



More information about the freebsd-amd64 mailing list