summaryrefslogtreecommitdiff
path: root/ldso/include/dl-syscall.h
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2005-06-30 04:47:50 +0000
committerMike Frysinger <vapier@gentoo.org>2005-06-30 04:47:50 +0000
commit5602071008f601088679079c677e6f1341d1d98e (patch)
treede53b6bab05a7c7d91f1f9aebbe27bc7b392a0ca /ldso/include/dl-syscall.h
parent47b68851d3f52782818075239db7ba41fd1aaaa5 (diff)
typecast to long instead of int so pointers on 64bit arches can be typecast safely
Diffstat (limited to 'ldso/include/dl-syscall.h')
-rw-r--r--ldso/include/dl-syscall.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/ldso/include/dl-syscall.h b/ldso/include/dl-syscall.h
index fbe852d18..a30b9133c 100644
--- a/ldso/include/dl-syscall.h
+++ b/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