Browse Source

filemanager: use correct type for results of `read` in `mmap` fallback

Signed-off-by: Yury V. Zaytsev <yury@shurup.com>
Yury V. Zaytsev 7 months ago
parent
commit
0cfccd5882
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/filemanager/cmd.c

+ 1 - 1
src/filemanager/cmd.c

@@ -210,7 +210,7 @@ compare_files (const vfs_path_t *vpath1, const vfs_path_t *vpath2, off_t size)
 #else
             /* Don't have mmap() :( Even more ugly :) */
             char buf1[BUFSIZ], buf2[BUFSIZ];
-            int n1, n2;
+            ssize_t n1, n2;
 
             rotate_dash (TRUE);
             do