Permalink
Browse files

Add explicit casts when Fiber isn't supported

  • Loading branch information...
Dirkjan Bussink
Dirkjan Bussink committed Feb 9, 2010
1 parent b87bcad commit e1a33f9a13bc96618c21dd6291a8084f8aacfe2d
Showing with 3 additions and 3 deletions.
  1. +3 −3 vm/builtin/fiber.cpp
View
@@ -28,7 +28,7 @@ namespace rubinius {
// Lazily allocate a root fiber.
if(fib->nil_p()) {
fib = state->new_object<Fiber>(G(fiber));
fib->prev_ = (Fiber*)Qnil;
fib->prev_ = reinterpret_cast<Fiber*>(Qnil);
fib->top_ = 0;
fib->root_ = true;
fib->status_ = Fiber::eRunning;
@@ -44,7 +44,7 @@ namespace rubinius {
return fib;
#else
return Qnil;
return reinterpret_cast<Fiber*>(Qnil);
#endif
}
@@ -113,7 +113,7 @@ namespace rubinius {
return fib;
#else
return Primitives::failure();
return reinterpret_cast<Fiber*>(Primitives::failure());
#endif
}

0 comments on commit e1a33f9

Please sign in to comment.