Skip to content

Commit 60ce381

Browse files
committed
Fixed compilation warning
1 parent 0988554 commit 60ce381

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/opcache/ZendAccelerator.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ static inline int is_phar_relative_alias_path(const char *filename, char **alias
150150
if (memcmp(filename, "phar://", sizeof("phar://") - 1) == 0
151151
&& filename[sizeof("phar://") - 1] != '\0' && filename[sizeof("phar://") - 1] != '/') {
152152
char *slash;
153-
*alias = filename + sizeof("phar://") - 1;
153+
*alias = (char*)filename + sizeof("phar://") - 1;
154154
slash = strstr(*alias, "/");
155155
if (slash) {
156156
*alias_len = slash - *alias;

0 commit comments

Comments
 (0)