From 428e152be6bb0fd3867e41cee82a6d5968a11a26 Mon Sep 17 00:00:00 2001 From: Ben Gamari Date: Tue, 29 Nov 2016 16:51:30 -0500 Subject: 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 --- rts/WSDeque.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'rts/WSDeque.c') diff --git a/rts/WSDeque.c b/rts/WSDeque.c index 45a0b10984..b9393b1839 100644 --- a/rts/WSDeque.c +++ b/rts/WSDeque.c @@ -233,7 +233,7 @@ stealWSDeque (WSDeque *q) /* enqueue an element. Should always succeed by resizing the array (not implemented yet, silently fails in that case). */ -rtsBool +bool pushWSDeque (WSDeque* q, void * elem) { StgWord t; @@ -267,7 +267,7 @@ pushWSDeque (WSDeque* q, void * elem) */ #if defined(DISCARD_NEW) ASSERT_WSDEQUE_INVARIANTS(q); - return rtsFalse; // we didn't push anything + return false; // we didn't push anything #else /* could make room by incrementing the top position here. In * this case, should use CASTOP. If this fails, someone else has @@ -291,5 +291,5 @@ pushWSDeque (WSDeque* q, void * elem) q->bottom = b + 1; ASSERT_WSDEQUE_INVARIANTS(q); - return rtsTrue; + return true; } -- cgit v1.2.1