summaryrefslogtreecommitdiff
path: root/rts/Schedule.h
diff options
context:
space:
mode:
authorBen Gamari <ben@smart-cactus.org>2022-11-23 19:42:02 -0500
committerMarge Bot <ben+marge-bot@smart-cactus.org>2023-01-27 23:56:43 -0500
commitb5c75f1d4652f7aebea27a09509707a24615dbd7 (patch)
tree5229530222e6e6a2771f9885e3bf72ae74cec100 /rts/Schedule.h
parent55a81995b7da53afba0d630d0c1b99f8ae475cfa (diff)
downloadhaskell-b5c75f1d4652f7aebea27a09509707a24615dbd7.tar.gz
rts: Fix C++ compilation issues
Make the RTS compilable with a C++ compiler by inserting necessary casts.
Diffstat (limited to 'rts/Schedule.h')
-rw-r--r--rts/Schedule.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/rts/Schedule.h b/rts/Schedule.h
index 415d2a3291..e4f17af3cf 100644
--- a/rts/Schedule.h
+++ b/rts/Schedule.h
@@ -131,7 +131,7 @@ setRecentActivity(enum RecentActivity new_value)
INLINE_HEADER enum RecentActivity
getRecentActivity(void)
{
- return RELAXED_LOAD_ALWAYS(&recent_activity);
+ return (enum RecentActivity) RELAXED_LOAD_ALWAYS(&recent_activity);
}
extern bool heap_overflow;