diff options
Diffstat (limited to 'ext/session/mod_files.c')
| -rw-r--r-- | ext/session/mod_files.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/session/mod_files.c b/ext/session/mod_files.c index 8757715c33..bf0c74338d 100644 --- a/ext/session/mod_files.c +++ b/ext/session/mod_files.c @@ -48,7 +48,7 @@ typedef struct { char *lastkey; char *basedir; size_t basedir_len; - int dirdepth; + size_t dirdepth; size_t st_size; } ps_files; @@ -220,7 +220,7 @@ PS_OPEN_FUNC(files) data->fd = -1; if ((p = strchr(save_path, ';'))) { - data->dirdepth = strtol(save_path, NULL, 10); + data->dirdepth = (size_t) strtol(save_path, NULL, 10); save_path = p + 1; } data->basedir_len = strlen(save_path); |
