Skip to content

Commit e8cb781

Browse files
committed
ext/opcache: use type size_t instead of type int
1 parent 5d42265 commit e8cb781

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ext/opcache/ZendAccelerator.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1238,7 +1238,7 @@ zend_string *accel_make_persistent_key(zend_string *str)
12381238
/* pass */
12391239
} else {
12401240
const char *include_path = NULL, *cwd = NULL;
1241-
int include_path_len = 0, cwd_len = 0;
1241+
size_t include_path_len = 0, cwd_len = 0;
12421242
const zend_string *parent_script = NULL;
12431243

12441244
if (EXPECTED(ZCG(cwd_key_len))) {
@@ -1345,7 +1345,7 @@ zend_string *accel_make_persistent_key(zend_string *str)
13451345
char *key = ZSTR_VAL(ZCG(key));
13461346
memcpy(key, path, path_length);
13471347
key[path_length] = ':';
1348-
int key_length = path_length + 1;
1348+
size_t key_length = path_length + 1;
13491349
memcpy(key + key_length, cwd, cwd_len);
13501350
key_length += cwd_len;
13511351

0 commit comments

Comments
 (0)