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 @@
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());
17 }