Permalink
Browse files

Fixed compiler errors (alt syntax and task::osmain -> task::platform_…

…thread)
  • Loading branch information...
1 parent 377d4a6 commit 02886d609541f7bfa6190ec67993a9ad312ea913 @mmeyerho mmeyerho committed Aug 8, 2012
Showing with 2 additions and 2 deletions.
  1. +1 −1 glut.rs
  2. +1 −1 test.rs
View
@@ -94,7 +94,7 @@ extern fn timer_callback(index: int) unsafe {
fn timer_func(msecs: u32, callback: fn@()) unsafe {
let callbacks;
- alt local_data_get(timer_callback_tls_key) {
+ match local_data_get(timer_callback_tls_key) {
none => {
callbacks = @dvec();
local_data_set(timer_callback_tls_key, copy callbacks);
View
@@ -129,7 +129,7 @@ fn display_callback() {
#[test]
fn test_triangle_and_square() unsafe {
- let builder = task::task().sched_mode(task::osmain);
+ let builder = task::task().sched_mode(task::platform_thread);
let po: port<()> = port();
let ch = chan(po);

0 comments on commit 02886d6

Please sign in to comment.