From a8bc0f30a0a9cf09d4f951d1c0219b06efe109f9 Mon Sep 17 00:00:00 2001 From: Nick Draper <nick.draper@stfc.ac.uk> Date: Tue, 12 Nov 2013 09:50:25 +0000 Subject: [PATCH] re #8418 resolve warnings by fixing qtiplot code that never worked --- Code/Mantid/MantidPlot/src/fit_gsl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Code/Mantid/MantidPlot/src/fit_gsl.cpp b/Code/Mantid/MantidPlot/src/fit_gsl.cpp index 768a361534d..6be8a2ed4c2 100644 --- a/Code/Mantid/MantidPlot/src/fit_gsl.cpp +++ b/Code/Mantid/MantidPlot/src/fit_gsl.cpp @@ -425,7 +425,7 @@ double lorentz_multi_peak_d (const gsl_vector * x, void *params) { } for (size_t i = 0; i < n; i++) { double res = 0; - for (j = 0; j < peaks; j++) { + for (size_t j = 0; j < peaks; j++) { double diff = X[i]-xc[j]; res += a[j]*w[j]/(4*diff*diff+w[j]*w[j]); } -- GitLab