From b78c096ebc73b81f77a58c0224ec037837dab8e4 Mon Sep 17 00:00:00 2001 From: Niko Matsakis Date: Fri, 11 Nov 2011 15:27:18 -0800 Subject: [PATCH] enum does not have a size consistent with a tag, so use unsigned long instead --- src/rt/rust_task.h | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/rt/rust_task.h b/src/rt/rust_task.h index 30e0d90b1290..399d48b51822 100644 --- a/src/rt/rust_task.h +++ b/src/rt/rust_task.h @@ -51,10 +51,9 @@ struct rust_task_user { }; // std::lib::task::task_result -enum task_result { - tr_success = 0, - tr_failure = 1 -}; +typedef unsigned long task_result; +#define tr_success 0 +#define tr_failure 1 // std::lib::task::task_notification //