Made clamp macro safer
This commit is contained in:
parent
d2f1b2c1a9
commit
dc0f242f25
1 changed files with 1 additions and 1 deletions
|
@ -20,7 +20,7 @@
|
|||
#define STREAM_SIZE (FREQUENCY / 200)
|
||||
#endif
|
||||
|
||||
#define clamp(x, y, z) ((x > z) ? z : (x < y) ? y : x)
|
||||
#define clamp(x, y, z) (((x) > (z)) ? (z) : ((x) < (y)) ? (y) : (x))
|
||||
|
||||
//Audio device
|
||||
SDL_AudioDeviceID audioDevice;
|
||||
|
|
Loading…
Add table
Reference in a new issue