From 2c20dc0f8333687f9c1e23a2f641a90e8213fad2 Mon Sep 17 00:00:00 2001 From: Adam G Nelson Date: Mon, 3 Sep 2018 14:27:04 -0400 Subject: [PATCH] super minor edit --- src/scattdata.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/src/scattdata.cpp b/src/scattdata.cpp index 1069ef6e9..8d7138624 100644 --- a/src/scattdata.cpp +++ b/src/scattdata.cpp @@ -551,7 +551,6 @@ ScattDataHistogram::sample(int gin, int& gout, double& mu, double& wgt) if (xi < dist[gin][i_gout][0]) { imu = 0; } else { - // TODO lower_bound? + 1? imu = std::upper_bound(dist[gin][i_gout].begin(), dist[gin][i_gout].end(), xi) - dist[gin][i_gout].begin();