summaryrefslogtreecommitdiff
path: root/rts/RaiseAsync.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/RaiseAsync.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/RaiseAsync.c')
-rw-r--r--rts/RaiseAsync.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/rts/RaiseAsync.c b/rts/RaiseAsync.c
index a0a81cf9ef..f55a4c23de 100644
--- a/rts/RaiseAsync.c
+++ b/rts/RaiseAsync.c
@@ -228,7 +228,7 @@ throwTo (Capability *cap, // the Capability we hold
}
-nat
+uint32_t
throwToMsg (Capability *cap, MessageThrowTo *msg)
{
StgWord status;
@@ -781,7 +781,7 @@ raiseAsync(Capability *cap, StgTSO *tso, StgClosure *exception,
StgRetInfoTable *info;
StgPtr sp, frame;
StgClosure *updatee;
- nat i;
+ uint32_t i;
StgStack *stack;
debugTraceCap(DEBUG_sched, cap,
@@ -861,7 +861,7 @@ raiseAsync(Capability *cap, StgTSO *tso, StgClosure *exception,
case UPDATE_FRAME:
{
StgAP_STACK * ap;
- nat words;
+ uint32_t words;
// First build an AP_STACK consisting of the stack chunk above the
// current update frame, with the top word on the stack as the
@@ -873,7 +873,7 @@ raiseAsync(Capability *cap, StgTSO *tso, StgClosure *exception,
ap->size = words;
ap->fun = (StgClosure *)sp[0];
sp++;
- for(i=0; i < (nat)words; ++i) {
+ for(i=0; i < words; ++i) {
ap->payload[i] = (StgClosure *)*sp++;
}
@@ -912,7 +912,7 @@ raiseAsync(Capability *cap, StgTSO *tso, StgClosure *exception,
case UNDERFLOW_FRAME:
{
StgAP_STACK * ap;
- nat words;
+ uint32_t words;
// First build an AP_STACK consisting of the stack chunk above the
// current update frame, with the top word on the stack as the
@@ -924,7 +924,7 @@ raiseAsync(Capability *cap, StgTSO *tso, StgClosure *exception,
ap->size = words;
ap->fun = (StgClosure *)sp[0];
sp++;
- for(i=0; i < (nat)words; ++i) {
+ for(i=0; i < words; ++i) {
ap->payload[i] = (StgClosure *)*sp++;
}