diff options
author | Ben Gamari <ben@smart-cactus.org> | 2022-11-23 19:42:02 -0500 |
---|---|---|
committer | Marge Bot <ben+marge-bot@smart-cactus.org> | 2023-01-27 23:56:43 -0500 |
commit | b5c75f1d4652f7aebea27a09509707a24615dbd7 (patch) | |
tree | 5229530222e6e6a2771f9885e3bf72ae74cec100 /rts/Schedule.h | |
parent | 55a81995b7da53afba0d630d0c1b99f8ae475cfa (diff) | |
download | haskell-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.h | 2 |
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; |