diff options
| author | Anatol Belski <ab@php.net> | 2014-10-28 19:32:51 +0100 |
|---|---|---|
| committer | Anatol Belski <ab@php.net> | 2014-10-29 15:30:03 +0100 |
| commit | 20f8f533e115e6f3c206335328411c5c570d08ee (patch) | |
| tree | 3c58ded72d4c0fec3486334a705c552517b64c59 /TSRM/tsrm_win32.c | |
| parent | 842a98ef3213107c2e3746e54623c271f99114d9 (diff) | |
| download | php-git-20f8f533e115e6f3c206335328411c5c570d08ee.tar.gz | |
fix datatype mismatch warns
Diffstat (limited to 'TSRM/tsrm_win32.c')
| -rw-r--r-- | TSRM/tsrm_win32.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/TSRM/tsrm_win32.c b/TSRM/tsrm_win32.c index faa186a1bb..9936320a95 100644 --- a/TSRM/tsrm_win32.c +++ b/TSRM/tsrm_win32.c @@ -279,14 +279,14 @@ TSRM_API int tsrm_win32_access(const char *pathname, int mode TSRMLS_DC) if (CWDG(realpath_cache_size_limit)) { t = time(0); - bucket = realpath_cache_lookup(pathname, strlen(pathname), t TSRMLS_CC); + bucket = realpath_cache_lookup(pathname, (int)strlen(pathname), t TSRMLS_CC); if(bucket == NULL && real_path == NULL) { /* We used the pathname directly. Call tsrm_realpath */ /* so that entry is created in realpath cache */ real_path = (char *)malloc(MAX_PATH); if(tsrm_realpath(pathname, real_path TSRMLS_CC) != NULL) { pathname = real_path; - bucket = realpath_cache_lookup(pathname, strlen(pathname), t TSRMLS_CC); + bucket = realpath_cache_lookup(pathname, (int)strlen(pathname), t TSRMLS_CC); } } } @@ -477,7 +477,7 @@ TSRM_API FILE *popen_ex(const char *command, const char *type, const char *cwd, } /*The following two checks can be removed once we drop XP support */ - type_len = strlen(type); + type_len = (int)strlen(type); if (type_len <1 || type_len > 2) { return NULL; } |
