mirror of
https://github.com/outbackdingo/UltraGrid.git
synced 2026-03-22 03:40:30 +00:00
vcomp/cmpto_j2k: ASSIGN_CHECK_VAL: print both bounds
This commit is contained in:
@@ -52,9 +52,10 @@
|
||||
#endif // HAVE_CONFIG_H
|
||||
|
||||
#include <cassert>
|
||||
#include <cinttypes> // for PRIdMAX, PRIuMAX
|
||||
#include <cmath>
|
||||
#include <condition_variable>
|
||||
#include <cstdint> // for uintmax_t
|
||||
#include <cstdint> // for intmax_t, uintmax_t
|
||||
#include <limits> // for numeric_limits
|
||||
#include <mutex>
|
||||
#include <string>
|
||||
@@ -741,10 +742,12 @@ static void usage(bool full) {
|
||||
std::nextafter(std::numeric_limits<typeof(var)>::max(), \
|
||||
-std::numeric_limits<double>::infinity()); \
|
||||
if (val < (minval) || val > maxval) { \
|
||||
LOG(LOG_LEVEL_ERROR) \
|
||||
<< "[J2K] Wrong value " << (str) \
|
||||
<< " for " #var "! Value must be >= " << (minval) \
|
||||
<< ".\n"; \
|
||||
MSG(ERROR, \
|
||||
"Wrong value %.0f (%s) for " #var \
|
||||
"! Value must be in range [%" PRIdMAX \
|
||||
"..%" PRIuMAX "].\n", \
|
||||
val, (str), (intmax_t) (minval), \
|
||||
maxval); \
|
||||
return NULL; \
|
||||
} \
|
||||
(var) = val; \
|
||||
|
||||
Reference in New Issue
Block a user