浏览代码

fix signedness warning

Samuel Thibault 9 年之前
父节点
当前提交
5ebf88a077
共有 2 个文件被更改,包括 2 次插入2 次删除
  1. 1 1
      src/core/disk_ops/disk_stdio.c
  2. 1 1
      src/core/disk_ops/unistd/disk_unistd_global.c

+ 1 - 1
src/core/disk_ops/disk_stdio.c

@@ -44,7 +44,7 @@
 #define TEMP_HIERARCHY_DEPTH 2
 
 /* ------------------- use STDIO to write on disk -------------------  */
-static int starpu_stdio_opened_files;
+static unsigned starpu_stdio_opened_files;
 
 struct starpu_stdio_obj
 {

+ 1 - 1
src/core/disk_ops/unistd/disk_unistd_global.c

@@ -53,7 +53,7 @@
 
 /* TODO: on Linux, use io_submit */
 
-static int starpu_unistd_opened_files;
+static unsigned starpu_unistd_opened_files;
 
 #ifdef HAVE_AIO_H
 struct starpu_unistd_aiocb {