diff options
author | arved <arved@FreeBSD.org> | 2004-02-03 17:32:10 +0800 |
---|---|---|
committer | arved <arved@FreeBSD.org> | 2004-02-03 17:32:10 +0800 |
commit | 48a11a225263a2d9cf16025ec172b8061d97d752 (patch) | |
tree | dba2556ff697aba68d2b00ec57755dc46de65ab6 /net-p2p/jigdo | |
parent | afea70a7bf20d6161629abfb2d69e778a011534a (diff) | |
download | freebsd-ports-gnome-48a11a225263a2d9cf16025ec172b8061d97d752.tar.gz freebsd-ports-gnome-48a11a225263a2d9cf16025ec172b8061d97d752.tar.zst freebsd-ports-gnome-48a11a225263a2d9cf16025ec172b8061d97d752.zip |
Fix Build on AMD64
Submitted by: Attila Nagy <bra@fsn.hu>
Diffstat (limited to 'net-p2p/jigdo')
-rw-r--r-- | net-p2p/jigdo/files/patch-aa | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/net-p2p/jigdo/files/patch-aa b/net-p2p/jigdo/files/patch-aa new file mode 100644 index 000000000000..b057cf97e4cc --- /dev/null +++ b/net-p2p/jigdo/files/patch-aa @@ -0,0 +1,18 @@ +--- 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) { + |