From 0697527acc9490f3141c158f38a4f04648094dbc Mon Sep 17 00:00:00 2001 From: Davis King Date: Tue, 16 Feb 2021 20:31:55 -0500 Subject: [PATCH] fix invalid assert --- dlib/global_optimization/global_function_search.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlib/global_optimization/global_function_search.cpp b/dlib/global_optimization/global_function_search.cpp index ca7b265a6..ef0ad78d7 100644 --- a/dlib/global_optimization/global_function_search.cpp +++ b/dlib/global_optimization/global_function_search.cpp @@ -623,7 +623,7 @@ namespace dlib { DLIB_CASSERT(functions_.size() > 0); DLIB_CASSERT(functions_.size() == initial_function_evals.size()); - DLIB_CASSERT(relative_noise_magnitude >= 0); + DLIB_CASSERT(relative_noise_magnitude_ >= 0); relative_noise_magnitude = relative_noise_magnitude_; for (size_t i = 0; i < initial_function_evals.size(); ++i) {