summaryrefslogtreecommitdiffstats
path: root/RichString.h
diff options
context:
space:
mode:
authorChristian Göttsche <cgzones@googlemail.com>2020-10-31 19:39:32 +0100
committercgzones <cgzones@googlemail.com>2020-10-31 19:54:03 +0100
commit15652e7b8102e86b3405254405d8ee5d2a239004 (patch)
treee1f0e47e1017ebd8a500fd4c4c6da96b67781e2f /RichString.h
parentab17ef4dc0a306b7481cb47149b1c25f7f200932 (diff)
Enclose macro arguments in parentheses
Diffstat (limited to 'RichString.h')
-rw-r--r--RichString.h2
1 files changed, 1 insertions, 1 deletions
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

© 2014-2024 Faster IT GmbH | imprint | privacy policy