fix outdated message in DLIB_CASSERT

This commit is contained in:
Adrià Arrufat 2022-02-04 17:06:36 +09:00
parent 00b48e6954
commit 57d05c636a

View File

@ -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)