From: Sylvain Munaut Date: Tue, 8 Jun 2021 16:24:16 +0000 (+0200) Subject: jtag_tap: Make the MIN macro safer X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=0232bb7e7f64a98bbe08e40f3e9c96c0b95596dc;p=ecpprog.git jtag_tap: Make the MIN macro safer Signed-off-by: Sylvain Munaut --- diff --git a/ecpprog/jtag_tap.c b/ecpprog/jtag_tap.c index c4bdf4e..737bc01 100644 --- a/ecpprog/jtag_tap.c +++ b/ecpprog/jtag_tap.c @@ -214,7 +214,7 @@ static void jtag_shift_bytes( } -#define MIN(a,b) (a < b) ? a : b +#define MIN(a,b) ((a) < (b)) ? (a) : (b) void jtag_tap_shift( uint8_t *input_data,