From 57d05c636aead9ba102bb04517bb9c9c6b5a6254 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adri=C3=A0=20Arrufat?= Date: Fri, 4 Feb 2022 17:06:36 +0900 Subject: [PATCH] fix outdated message in DLIB_CASSERT --- dlib/rand/rand_kernel_1.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dlib/rand/rand_kernel_1.h b/dlib/rand/rand_kernel_1.h index 3e0067681..bae36be26 100644 --- a/dlib/rand/rand_kernel_1.h +++ b/dlib/rand/rand_kernel_1.h @@ -295,7 +295,8 @@ namespace dlib double beta ) { - DLIB_CASSERT(alpha > 0 && beta > 0, "a and b must be greater than zero"); + DLIB_CASSERT(alpha > 0, "alpha must be greater than zero") + DLIB_CASSERT(beta > 0, "beta must be greater than zero"); auto u = std::pow(get_random_double(), 1 / alpha); auto v = std::pow(get_random_double(), 1 / beta); while ((u + v) > 1 || u == 0 || v == 0)