mirror of
https://github.com/xzeldon/htop.git
synced 2025-04-16 23:15:44 +03:00
Enclose CLAMP macro arguments in parentheses
This commit is contained in:
parent
db472075a4
commit
db159e7580
2
Macros.h
2
Macros.h
@ -10,7 +10,7 @@
|
||||
#endif
|
||||
|
||||
#ifndef CLAMP
|
||||
#define CLAMP(x, low, high) (assert(low < high), ((x) > (high)) ? (high) : MAXIMUM(x, low))
|
||||
#define CLAMP(x, low, high) (assert((low) < (high)), ((x) > (high)) ? (high) : MAXIMUM(x, low))
|
||||
#endif
|
||||
|
||||
#ifndef ARRAYSIZE
|
||||
|
Loading…
x
Reference in New Issue
Block a user