X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=pam.cpp;h=d962a363f8330a063a1d63ac2129686164bc706f;hb=HEAD;hp=98b2113238f099dfb188a2235e87be0c76d230f4;hpb=7a1e4b563011b1fe4d466d64915a3cb960747125;p=mothur.git diff --git a/pam.cpp b/pam.cpp index 98b2113..d962a36 100644 --- a/pam.cpp +++ b/pam.cpp @@ -125,10 +125,10 @@ int Pam::swapPhase() { for (int j = 0; j < numSamples; j++) { if (m->control_pressed) { break; } if (dists[i][j] == Dp[j][0]) { - double small = 0.0; - if (Dp[j][1] > dists[h][j]) { small = dists[h][j]; } - else { small = Dp[j][1]; } - dz += (- Dp[j][0]+ small); + double smallValue; smallValue = 0.0; + if (Dp[j][1] > dists[h][j]) { smallValue = dists[h][j]; } + else { smallValue = Dp[j][1]; } + dz += (- Dp[j][0]+ smallValue); }else if (dists[h][j] < Dp[j][0]) { dz += (- Dp[j][0] + dists[h][j]); }