Fix build with clang

Reported by:	clang pointyhat run
This commit is contained in:
Tilman Keskinoz 2011-06-21 13:40:48 +00:00
parent a8557170fb
commit d066a6fca7
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=275993
3 changed files with 16 additions and 2 deletions

View file

@ -7,7 +7,7 @@
PORTNAME= steghide
PORTVERSION= 0.5.1
PORTREVISION= 3
PORTREVISION= 4
CATEGORIES= security
MASTER_SITES= SF
DISTNAME= ${PORTNAME}-${PORTVERSION:S/.b/b/}

View file

@ -1,3 +1,2 @@
MD5 (steghide-0.5.1.tar.gz) = 5be490e24807d921045780fd8cc446b3
SHA256 (steghide-0.5.1.tar.gz) = 78069b7cfe9d1f5348ae43f918f06f91d783c2b3ff25af021e6a312cf541b47b
SIZE (steghide-0.5.1.tar.gz) = 476125

View file

@ -0,0 +1,15 @@
--- src/BmpFile.cc.orig 2011-06-21 15:28:36.000000000 +0200
+++ src/BmpFile.cc 2011-06-21 15:28:40.000000000 +0200
@@ -214,10 +214,10 @@
// create reservoir - for every i reservoir[i] contains the sample values that are neighbourss of
// the sample value with label i and have a lower label (and have already been found)
// This is necessary to use collapsing trees together with bucket sort (without huge increase in memory usage)
- std::vector<BmpRGBSampleValue*> reservoir[svs.size()] ;
+ std::vector<std::vector<BmpRGBSampleValue*> > reservoir(svs.size()) ;
// neighbours sorted by distance (for the current source sample value)
- std::vector<BmpRGBSampleValue*> neighbours_byd[r + 1] ;
+ std::vector<std::vector<BmpRGBSampleValue*> > neighbours_byd(r + 1) ;
for (std::vector<SampleValue*>::const_iterator srcsvit = svs.begin() ; srcsvit != svs.end() ; srcsvit++) {
BmpRGBSampleValue* srcsv = (BmpRGBSampleValue*) (*srcsvit) ;