svn commit: r1932711 - subversion/trunk/subversion/svnbrowse

[email protected]
Newsgroups gmane.comp.version-control.subversion.svn
Message-ID <177506629693.1780861.16531875086672795081@svn03-he-fi>
Author: rinrab
Date: Wed Apr  1 17:58:16 2026
New Revision: 1932711

Log:
svnbrowse: Add parenthesis around ch in the CTRL() macro to avoid potential
issues when expanded.

* subversion/svnbrowse/svnbrowse.c
  (CTRL): Fix macro.

Suggested by: hartmannathan

Modified:
   subversion/trunk/subversion/svnbrowse/svnbrowse.c

Modified: subversion/trunk/subversion/svnbrowse/svnbrowse.c
==============================================================================
--- subversion/trunk/subversion/svnbrowse/svnbrowse.c	Wed Apr  1 17:53:35 2026	(r1932710)
+++ subversion/trunk/subversion/svnbrowse/svnbrowse.c	Wed Apr  1 17:58:16 2026	(r1932711)
@@ -35,7 +35,7 @@
 
 /* Control+ASCII character are represented as values 1-26 according to their
  * alphabetical order. */
-#define CTRL(ch) (ch - 'a' + 1)
+#define CTRL(ch) ((ch) - 'a' + 1)
 
 typedef struct svn_browse__item_t {
   const char *relpath;
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.