Skip to content

Commit 1facbc3

Browse files
committed
ext/phar: Use normal variable instead of macro
1 parent ae9d809 commit 1facbc3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ext/phar/phar.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2180,9 +2180,9 @@ char *phar_fix_filepath(char *path, size_t *new_len, int use_cwd) /* {{{ */
21802180
ptr_length = ptr - tok;
21812181
last_time:
21822182
if (IS_DIRECTORY_UP(tok, ptr_length)) {
2183-
#define PREVIOUS newpath[newpath_len - 1]
2183+
const char previous = newpath[newpath_len - 1];
21842184

2185-
while (newpath_len > 1 && !IS_BACKSLASH(PREVIOUS)) {
2185+
while (newpath_len > 1 && !IS_BACKSLASH(previous)) {
21862186
newpath_len--;
21872187
}
21882188

0 commit comments

Comments
 (0)