Skip to content

Commit 16ac9ae

Browse files
committed
* subversion/include/private/svn_io_private.h
(SVN_IO__WIN_TIME_UNCHANGED, SVN_IO__WIN_TIME_SUSPEND_UPDATE): Enclose macro values in parentheses to prevent potential operator precedence issues during expansion. git-svn-id: https://svn.apache.org/repos/asf/subversion/trunk@1930586 13f79535-47bb-0310-9956-ffa450edef68
1 parent 7a1060e commit 16ac9ae

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

subversion/include/private/svn_io_private.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -200,15 +200,15 @@ svn_io__win_rename_open_file(apr_file_t *file,
200200
Corresponds to the predefined value of "0" in:
201201
https://docs.microsoft.com/windows-hardware/drivers/ddi/wdm/ns-wdm-_file_basic_information#remarks
202202
*/
203-
#define SVN_IO__WIN_TIME_UNCHANGED APR_INT64_MIN + 0
203+
#define SVN_IO__WIN_TIME_UNCHANGED (APR_INT64_MIN + 0)
204204

205205
/* Special value that indicates that the file system should suspend updates
206206
for timestamp values such as LastAccessTime, LastWriteTime, and ChangeTime
207207
during subsequent I/O operations on the file handle.
208208
Corresponds to the predefined value of "-1" in:
209209
https://docs.microsoft.com/windows-hardware/drivers/ddi/wdm/ns-wdm-_file_basic_information#remarks
210210
*/
211-
#define SVN_IO__WIN_TIME_SUSPEND_UPDATE APR_INT64_MIN + 1
211+
#define SVN_IO__WIN_TIME_SUSPEND_UPDATE (APR_INT64_MIN + 1)
212212

213213
/* This Windows-specific function sets the basic file information using an
214214
existing file handle. The SET_MTIME will be set as the new LastWriteTime

0 commit comments

Comments
 (0)