Problem: magic literals for UCHAR_MAX

Solution: use UCHAR_MAX constant instead
This commit is contained in:
Simon Giesecke
2018-05-28 18:46:36 +02:00
parent a4c817e736
commit 7c2d1c1824
7 changed files with 21 additions and 12 deletions

View File

@@ -146,7 +146,7 @@ void zmq::thread_t::
{
int priority =
(_thread_priority >= 0 ? _thread_priority : DEFAULT_PRIORITY);
priority = (priority < 255 ? priority : DEFAULT_PRIORITY);
priority = (priority < UCHAR_MAX ? priority : DEFAULT_PRIORITY);
if (_descriptor != NULL || _descriptor > 0) {
taskPrioritySet (_descriptor, priority);
}