Browse Source

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

Mike Frysinger 20 years ago
parent
commit
5602071008
1 changed files with 2 additions and 2 deletions
  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