You've already forked macports-ports
mirror of
https://github.com/macports/macports-ports.git
synced 2026-07-12 18:20:25 -07:00
3ba2ee3f87
git-svn-id: https://svn.macports.org/repository/macports/trunk/dports@92978 d073be05-634f-4543-b044-5fe20cf6d1d6
16 lines
958 B
Diff
16 lines
958 B
Diff
--- 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) ;
|