From 561277d79199f9f6379262f169f12ca34651f262 Mon Sep 17 00:00:00 2001 From: klutzy Date: Sun, 24 Nov 2013 05:48:45 +0900 Subject: [PATCH] std: Fix transmute error on win64 --- src/libstd/rt/thread.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libstd/rt/thread.rs b/src/libstd/rt/thread.rs index e364e5a6603..a0e66d2fd4e 100644 --- a/src/libstd/rt/thread.rs +++ b/src/libstd/rt/thread.rs @@ -48,7 +48,7 @@ impl Thread { let f: ~proc() = cast::transmute(trampoline); (*f)(); } - unsafe { cast::transmute(0) } + unsafe { cast::transmute(0 as rust_thread_return) } } let native = native_thread_create(thread_start, ~main);