Skip to content

Commit b78c096

Browse files
committed
enum does not have a size consistent with a tag, so use unsigned long instead
1 parent c997a35 commit b78c096

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/rt/rust_task.h

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,9 @@ struct rust_task_user {
5151
};
5252

5353
// std::lib::task::task_result
54-
enum task_result {
55-
tr_success = 0,
56-
tr_failure = 1
57-
};
54+
typedef unsigned long task_result;
55+
#define tr_success 0
56+
#define tr_failure 1
5857

5958
// std::lib::task::task_notification
6059
//

0 commit comments

Comments
 (0)