summaryrefslogtreecommitdiff
path: root/rts/Messages.c
diff options
context:
space:
mode:
authorErik de Castro Lopo <erikd@mega-nerd.com>2016-05-02 06:37:14 +1000
committerErik de Castro Lopo <erikd@mega-nerd.com>2016-05-05 08:29:27 +1000
commitdb9de7eb3e91820024f673bfdb6fb8064cfed20d (patch)
tree5e1c3ef0b6dee7f40fedbc118ba36cfe6ffdd1ee /rts/Messages.c
parentad4392c142696d5092533480a82ed65322e9d413 (diff)
downloadhaskell-db9de7eb3e91820024f673bfdb6fb8064cfed20d.tar.gz
rts: Replace `nat` with `uint32_t`
The `nat` type was an alias for `unsigned int` with a comment saying it was at least 32 bits. We keep the typedef in case client code is using it but mark it as deprecated. Test Plan: Validated on Linux, OS X and Windows Reviewers: simonmar, austin, thomie, hvr, bgamari, hsyl20 Differential Revision: https://phabricator.haskell.org/D2166
Diffstat (limited to 'rts/Messages.c')
-rw-r--r--rts/Messages.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/rts/Messages.c b/rts/Messages.c
index 5a67bf3e8c..2177dd11c3 100644
--- a/rts/Messages.c
+++ b/rts/Messages.c
@@ -80,7 +80,7 @@ loop:
else if (i == &stg_MSG_THROWTO_info)
{
MessageThrowTo *t = (MessageThrowTo *)m;
- nat r;
+ uint32_t r;
const StgInfoTable *i;
i = lockClosure((StgClosure*)m);
@@ -113,7 +113,7 @@ loop:
}
else if (i == &stg_MSG_BLACKHOLE_info)
{
- nat r;
+ uint32_t r;
MessageBlackHole *b = (MessageBlackHole*)m;
r = messageBlackHole(cap, b);
@@ -158,7 +158,7 @@ loop:
------------------------------------------------------------------------- */
-nat messageBlackHole(Capability *cap, MessageBlackHole *msg)
+uint32_t messageBlackHole(Capability *cap, MessageBlackHole *msg)
{
const StgInfoTable *info;
StgClosure *p;