summaryrefslogtreecommitdiff
path: root/includes
diff options
context:
space:
mode:
authorÖmer Sinan Ağacan <omeragacan@gmail.com>2019-04-22 09:58:56 +0300
committerMarge Bot <ben+marge-bot@smart-cactus.org>2019-04-25 14:35:09 -0400
commit4e22826716dc0d3b4ab8bdd538c569a280cd8083 (patch)
tree6f78d8e113909c03f5802d4f2cee680a3737038c /includes
parentf85efdec3e0580591eed0d132404a20df9a76316 (diff)
downloadhaskell-4e22826716dc0d3b4ab8bdd538c569a280cd8083.tar.gz
Minor RTS refactoring:
- Remove redundant casting in evacuate_static_object - Remove redundant parens in STATIC_LINK - Fix a typo in GC.c
Diffstat (limited to 'includes')
-rw-r--r--includes/rts/storage/ClosureMacros.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/includes/rts/storage/ClosureMacros.h b/includes/rts/storage/ClosureMacros.h
index e52059e790..7a2c5dab80 100644
--- a/includes/rts/storage/ClosureMacros.h
+++ b/includes/rts/storage/ClosureMacros.h
@@ -184,8 +184,8 @@ STATIC_LINK(const StgInfoTable *info, StgClosure *p)
case IND_STATIC:
return IND_STATIC_LINK(p);
default:
- return &(p)->payload[info->layout.payload.ptrs +
- info->layout.payload.nptrs];
+ return &p->payload[info->layout.payload.ptrs +
+ info->layout.payload.nptrs];
}
}