summaryrefslogtreecommitdiff
path: root/net/jigdo/patches/patch-aa
blob: 1ce385a666968862f9eee924256bb2f3d801d41c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
$NetBSD: patch-aa,v 1.1 2004/03/09 10:00:58 wiz Exp $

--- src/mktemplate.cc.orig	Sun Apr 27 17:57:21 2003
+++ src/mktemplate.cc
@@ -643,7 +643,7 @@ void MkTemplate::scanImage_mainLoop_fast
     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) {