浏览代码

typecast to long instead of int so pointers on 64bit arches can be typecast safely

Mike Frysinger 20 年之前
父节点
当前提交
5602071008
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      ldso/include/dl-syscall.h

+ 2 - 2
ldso/include/dl-syscall.h

@@ -47,8 +47,8 @@
 #ifndef _dl_MAX_ERRNO
 #define _dl_MAX_ERRNO 4096
 #endif
-#define _dl_mmap_check_error(__res)     \
-        (((int)__res) < 0 && ((int)__res) >= -_dl_MAX_ERRNO)
+#define _dl_mmap_check_error(__res) \
+	(((long)__res) < 0 && ((long)__res) >= -_dl_MAX_ERRNO)
 #endif