mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-29 10:18:30 +00:00
Fix Build on AMD64
Submitted by: Attila Nagy <bra@fsn.hu>
This commit is contained in:
parent
d5c955e33a
commit
7c0b3977df
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=99872
18
ftp/jigdo/files/patch-aa
Normal file
18
ftp/jigdo/files/patch-aa
Normal file
@ -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) {
|
||||
|
18
net-p2p/jigdo/files/patch-aa
Normal file
18
net-p2p/jigdo/files/patch-aa
Normal file
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user