Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

…thread)
  • Loading branch information...
commit 02886d609541f7bfa6190ec67993a9ad312ea913 1 parent 377d4a6
@mmeyerho mmeyerho authored
Showing with 2 additions and 2 deletions.
  1. +1 −1  glut.rs
  2. +1 −1  test.rs
View
2  glut.rs
@@ -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
2  test.rs
@@ -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);
Please sign in to comment.
Something went wrong with that request. Please try again.