Code

Added type_mismatch.dpatch to fix a failure to instantiate std::max().
[pkg-enblend.git] / debian / patches / type_mismatch.dpatch
1 #! /bin/sh /usr/share/dpatch/dpatch-run
2 ## type_mismatch.dpatch by Sebastian Harl <sh@tokkee.org>
3 ##
4 ## DP: Fixed a type mismatch when trying to instantiate std::max.
6 @DPATCH@
8 --- a/src/anneal.h
9 +++ b/src/anneal.h
10 @@ -678,7 +678,7 @@
11  
12              localK = stateSpace->size();
13              if (localK < 2) convergedPoints[index] = true;
14 -            kMax = std::max(kMax, stateProbabilities->size());
15 +            kMax = std::max(kMax, (unsigned int)stateProbabilities->size());
16  
17          }
18