Browse Source

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

Mike Frysinger 20 năm trước cách đây
mục cha
commit
5602071008
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  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