@matheusbsbs / matheus-bagliano / commits / 8dcaefb52f
Fork 0

quote.c: silence compiler warnings from EMIT macro

Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <junkio@cox.net>

Jeff King committed Jun 28, 2006 at 01:59 UTC 8dcaefb52f81115d71e1dfa27d45f4a677bcbc09
1 file changed +1 -1
quote.c
+1 -1
@@ -13,7 +13,7 @@
13 * a!b ==> a'\!'b ==> 'a'\!'b'
14 */
15 #undef EMIT
16 -#define EMIT(x) ( (++len < n) && (*bp++ = (x)) )
16 +#define EMIT(x) do { if (++len < n) *bp++ = (x); } while(0)
17
18 static inline int need_bs_quote(char c)
19 {