From 2d4a45c75849431d3654af6fdf6a86c4f670db32 Mon Sep 17 00:00:00 2001 From: paboyle Date: Wed, 12 Oct 2016 09:14:15 +0100 Subject: [PATCH] Typecast pointer --- lib/Stencil.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/Stencil.h b/lib/Stencil.h index 061accc3..83aace54 100644 --- a/lib/Stencil.h +++ b/lib/Stencil.h @@ -265,15 +265,15 @@ } inline uint64_t GetInfo(int &ptype,int &local,int &perm,int point,int ent,uint64_t base) { //_mm_prefetch((char *)&_entries[ent+1],_MM_HINT_T0); - uint64_t cbase = & comm_buf[0]; + uint64_t cbase = (uint64_t) & comm_buf[0]; local = _entries[ent]._is_local; perm = _entries[ent]._permute; if (perm) ptype = _permute_type[point]; if (local) return base + _entries[ent]._byte_offset; - else return cbase +_entries[ent]._byte_offset; + else return cbase + _entries[ent]._byte_offset; } inline uint64_t GetPFInfo(int ent,uint64_t base) { - uint64_t cbase = & comm_buf[0]; + uint64_t cbase = (uint64_t)& comm_buf[0]; int local = _entries[ent]._is_local; if (local) return base + _entries[ent]._byte_offset; else return cbase + _entries[ent]._byte_offset;