1
0
forked from aniani/vim

Correct use of long instead of off_t for file size. (James Vega)

This commit is contained in:
Bram Moolenaar
2010-05-31 21:59:46 +02:00
parent 20a825ae0f
commit 914703bee2
11 changed files with 334 additions and 119 deletions

View File

@@ -1983,7 +1983,7 @@ ml_sync_all(check_file, check_char)
*/
if (mch_stat((char *)buf->b_ffname, &st) == -1
|| st.st_mtime != buf->b_mtime_read
|| (size_t)st.st_size != buf->b_orig_size)
|| st.st_size != buf->b_orig_size)
{
ml_preserve(buf, FALSE);
did_check_timestamps = FALSE;