From 742dfceed6a931e51fec83da70004fb7f841a713 Mon Sep 17 00:00:00 2001 From: jmcmullan Date: Tue, 9 Jul 2013 20:51:31 +0000 Subject: [PATCH] exec.library: Compiler lint Signed-off-by: Jason S. McMullan git-svn-id: https://svn.aros.org/svn/aros/trunk/AROS@47642 fb15a70f-31f2-0310-bbcc-cdcc74a49acc --- rom/exec/allocpooled.c | 2 +- rom/exec/allocvecpooled.c | 2 +- rom/exec/memory.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/rom/exec/allocpooled.c b/rom/exec/allocpooled.c index 88d0f52e45..cc1dd9f584 100644 --- a/rom/exec/allocpooled.c +++ b/rom/exec/allocpooled.c @@ -71,7 +71,7 @@ if (mhe->mhe_MemHeader.mh_Attributes & MEMF_MANAGED) { - ULONG attributes = (ULONG)mhe->mhe_MemHeader.mh_First; + ULONG attributes = (ULONG)(IPTR)mhe->mhe_MemHeader.mh_First; if (mhe->mhe_Alloc) return mhe->mhe_Alloc(mhe, memSize, &attributes); diff --git a/rom/exec/allocvecpooled.c b/rom/exec/allocvecpooled.c index 4a1081e628..670249d304 100644 --- a/rom/exec/allocvecpooled.c +++ b/rom/exec/allocvecpooled.c @@ -20,7 +20,7 @@ AROS_LH2(APTR, AllocVecPooled, if (mhe->mhe_MemHeader.mh_Attributes & MEMF_MANAGED) { - ULONG attributes = (ULONG)mhe->mhe_MemHeader.mh_First; + ULONG attributes = (ULONG)(IPTR)mhe->mhe_MemHeader.mh_First; if (mhe->mhe_Alloc) return mhe->mhe_AllocVec(mhe, size, &attributes); diff --git a/rom/exec/memory.c b/rom/exec/memory.c index 18c581c4b4..ac0567c058 100644 --- a/rom/exec/memory.c +++ b/rom/exec/memory.c @@ -812,7 +812,7 @@ APTR AllocMemHeader(IPTR size, ULONG flags, struct TraceLocation *loc, struct Ex mh->mh_Attributes = orig->mh_Attributes; mh->mh_Upper = (void *)mh + size; mh->mh_Lower = (void *)mh; - mh->mh_First = (APTR)flags; + mh->mh_First = (APTR)(IPTR)flags; mh->mh_Free = 0; mhe->mhe_Magic = mhe_orig->mhe_Magic; -- 2.11.4.GIT