Make a clamp macro safer
This commit is contained in:
parent
217ce5437b
commit
a076274864
1 changed files with 1 additions and 1 deletions
|
@ -11,7 +11,7 @@
|
|||
|
||||
#define MIN(a, b) ((a) < (b) ? (a) : (b))
|
||||
#define MAX(a, b) ((a) > (b) ? (a) : (b))
|
||||
#define clamp(x, y, z) MIN(MAX(x, y), z)
|
||||
#define clamp(x, y, z) MIN(MAX((x), (y)), (z))
|
||||
|
||||
struct AudioBackend_Sound
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue