core-util: Make range checks easier to read
authorTanu Kaskinen <tanuk@iki.fi>
Tue, 9 Jun 2020 04:56:17 +0000 (07:56 +0300)
committerTanu Kaskinen <tanuk@iki.fi>
Thu, 3 Dec 2020 14:41:39 +0000 (14:41 +0000)
commit6722b2d8c422493829c4c57ca5ec1919c7c74231
tree9bb765e1fd4bd86cafa0de6ffdf02ad461f8abed
parentff64defc137f61f1376653f523b5aa17f139ae2c
core-util: Make range checks easier to read

It wasn't immediately obvious to me what these checks are supposed to
do. Explicitly checking against the min/max values should make the code
easier to understand.

Part-of: <https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/51>
src/pulsecore/core-util.c