summaryrefslogtreecommitdiff
path: root/rts/Weak.c
diff options
context:
space:
mode:
authorBen Gamari <bgamari.foss@gmail.com>2016-11-29 16:51:30 -0500
committerBen Gamari <ben@smart-cactus.org>2016-11-29 16:51:30 -0500
commit428e152be6bb0fd3867e41cee82a6d5968a11a26 (patch)
treee43d217c10c052704f872cd7e1df4d335c12d376 /rts/Weak.c
parent56d74515396c8b6360ba7898cbc4b68f0f1fb2ea (diff)
downloadhaskell-428e152be6bb0fd3867e41cee82a6d5968a11a26.tar.gz
Use C99's bool
Test Plan: Validate on lots of platforms Reviewers: erikd, simonmar, austin Reviewed By: erikd, simonmar Subscribers: michalt, thomie Differential Revision: https://phabricator.haskell.org/D2699
Diffstat (limited to 'rts/Weak.c')
-rw-r--r--rts/Weak.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/rts/Weak.c b/rts/Weak.c
index 27854c91be..1974bb972e 100644
--- a/rts/Weak.c
+++ b/rts/Weak.c
@@ -39,7 +39,7 @@ runAllCFinalizers(StgWeak *list)
task = myTask();
if (task != NULL) {
- task->running_finalizers = rtsTrue;
+ task->running_finalizers = true;
}
for (w = list; w; w = w->link) {
@@ -56,7 +56,7 @@ runAllCFinalizers(StgWeak *list)
}
if (task != NULL) {
- task->running_finalizers = rtsFalse;
+ task->running_finalizers = false;
}
}
@@ -87,7 +87,7 @@ scheduleFinalizers(Capability *cap, StgWeak *list)
task = myTask();
if (task != NULL) {
- task->running_finalizers = rtsTrue;
+ task->running_finalizers = true;
}
// count number of finalizers, and kill all the weak pointers first...
@@ -116,7 +116,7 @@ scheduleFinalizers(Capability *cap, StgWeak *list)
}
if (task != NULL) {
- task->running_finalizers = rtsFalse;
+ task->running_finalizers = false;
}
// No finalizers to run?