diff options
author | Bram Moolenaar <Bram@vim.org> | 2016-07-01 17:17:39 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2016-07-01 17:17:39 +0200 |
commit | 8767f52fbfd4f053ce00a978227c95f1d7d323fe (patch) | |
tree | ac0cb33815d6e9d41f9b7a6b4ee4335e6076feaa /src/eval.c | |
parent | 4a6c670b844a3ef9aec865a8216eaf363bab8721 (diff) |
patch 7.4.1975v7.4.1975
Problem: On MS-Windows large files (> 2Gbyte) cause problems.
Solution: Use "off_T" instead of "off_t". Use "stat_T" instead of "struct
stat". Use 64 bit system functions if available. (Ken Takata)
Diffstat (limited to 'src/eval.c')
-rw-r--r-- | src/eval.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/eval.c b/src/eval.c index 27c58cc5c7..59a767a0c3 100644 --- a/src/eval.c +++ b/src/eval.c @@ -12980,7 +12980,7 @@ f_getfontname(typval_T *argvars UNUSED, typval_T *rettv) f_getfperm(typval_T *argvars, typval_T *rettv) { char_u *fname; - struct stat st; + stat_T st; char_u *perm = NULL; char_u flags[] = "rwx"; int i; @@ -13010,7 +13010,7 @@ f_getfperm(typval_T *argvars, typval_T *rettv) f_getfsize(typval_T *argvars, typval_T *rettv) { char_u *fname; - struct stat st; + stat_T st; fname = get_tv_string(&argvars[0]); @@ -13025,7 +13025,7 @@ f_getfsize(typval_T *argvars, typval_T *rettv) rettv->vval.v_number = (varnumber_T)st.st_size; /* non-perfect check for overflow */ - if ((off_t)rettv->vval.v_number != (off_t)st.st_size) + if ((off_T)rettv->vval.v_number != (off_T)st.st_size) rettv->vval.v_number = -2; } } @@ -13040,7 +13040,7 @@ f_getfsize(typval_T *argvars, typval_T *rettv) f_getftime(typval_T *argvars, typval_T *rettv) { char_u *fname; - struct stat st; + stat_T st; fname = get_tv_string(&argvars[0]); @@ -13057,7 +13057,7 @@ f_getftime(typval_T *argvars, typval_T *rettv) f_getftype(typval_T *argvars, typval_T *rettv) { char_u *fname; - struct stat st; + stat_T st; char_u *type = NULL; char *t; |