about summary refs log tree commit diff
path: root/src/rt/rust_shape.cpp
diff options
context:
space:
mode:
authorMarijn Haverbeke <marijnh@gmail.com>2011-10-20 11:42:40 +0200
committerMarijn Haverbeke <marijnh@gmail.com>2011-10-20 13:15:21 +0200
commit6323a012bd1417451cd81f00679039d630dc1695 (patch)
tree0398fcc0e52e8cc0dd62668704c1889263f69a3a /src/rt/rust_shape.cpp
parente927df17f7f9c150fcbfd566927ad29ff5eb6f15 (diff)
downloadrust-6323a012bd1417451cd81f00679039d630dc1695.tar.gz
rust-6323a012bd1417451cd81f00679039d630dc1695.zip
Remove taskptr argument from upcalls
Issue #466
Diffstat (limited to 'src/rt/rust_shape.cpp')
-rw-r--r--src/rt/rust_shape.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rt/rust_shape.cpp b/src/rt/rust_shape.cpp
index 994c4df0fb9..8fa82b75481 100644
--- a/src/rt/rust_shape.cpp
+++ b/src/rt/rust_shape.cpp
@@ -552,8 +552,8 @@ upcall_cmp_type(int8_t *result, rust_task *task, const type_desc *tydesc,
 }
 
 extern "C" void
-upcall_log_type(rust_task *task, const type_desc *tydesc, uint8_t *data,
-                uint32_t level) {
+upcall_log_type(const type_desc *tydesc, uint8_t *data, uint32_t level) {
+    rust_task *task = rust_scheduler::get_task();
     if (task->sched->log_lvl < level)
         return;     // TODO: Don't evaluate at all?