defs: rename variables in min/max macros

Fixes a variable shadow warning when SPA_CLAMP() is used.
This commit is contained in:
Frank Praznik 2020-10-15 22:21:17 +00:00 committed by Wim Taymans
parent 796db2b11b
commit 62a34f8c48

View file

@ -77,15 +77,15 @@ struct spa_fraction {
#define SPA_MIN(a,b) \ #define SPA_MIN(a,b) \
({ \ ({ \
__typeof__(a) _a = (a); \ __typeof__(a) _min_a = (a); \
__typeof__(b) _b = (b); \ __typeof__(b) _min_b = (b); \
SPA_LIKELY(_a < _b) ? _a : _b; \ SPA_LIKELY(_min_a < _min_b) ? _min_a : _min_b; \
}) })
#define SPA_MAX(a,b) \ #define SPA_MAX(a,b) \
({ \ ({ \
__typeof__(a) _a = (a); \ __typeof__(a) _max_a = (a); \
__typeof__(b) _b = (b); \ __typeof__(b) _max_b = (b); \
SPA_LIKELY(_a > _b) ? _a : _b; \ SPA_LIKELY(_max_a > _max_b) ? _max_a : _max_b; \
}) })
#define SPA_CLAMP(v,low,high) \ #define SPA_CLAMP(v,low,high) \
({ \ ({ \