From 5602071008f601088679079c677e6f1341d1d98e Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Thu, 30 Jun 2005 04:47:50 +0000 Subject: typecast to long instead of int so pointers on 64bit arches can be typecast safely --- ldso/include/dl-syscall.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ldso/include') 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 -- cgit v1.2.3