From 15652e7b8102e86b3405254405d8ee5d2a239004 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20G=C3=B6ttsche?= Date: Sat, 31 Oct 2020 19:39:32 +0100 Subject: Enclose macro arguments in parentheses --- RichString.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'RichString.h') diff --git a/RichString.h b/RichString.h index 48c1e749..aab2d891 100644 --- a/RichString.h +++ b/RichString.h @@ -27,7 +27,7 @@ in the source distribution for its full text. #define CharType cchar_t #else #define RichString_printVal(this, y, x) mvaddchstr(y, x, (this).chptr) -#define RichString_printoffnVal(this, y, x, off, n) mvaddchnstr(y, x, (this).chptr + off, n) +#define RichString_printoffnVal(this, y, x, off, n) mvaddchnstr(y, x, (this).chptr + (off), n) #define RichString_getCharVal(this, i) ((this).chptr[i]) #define RichString_setChar(this, at, ch) do{ (this)->chptr[(at)] = ch; } while(0) #define CharType chtype -- cgit v1.2.3