diff options
| author | Marijn Haverbeke <marijnh@gmail.com> | 2011-10-20 11:42:40 +0200 |
|---|---|---|
| committer | Marijn Haverbeke <marijnh@gmail.com> | 2011-10-20 13:15:21 +0200 |
| commit | 6323a012bd1417451cd81f00679039d630dc1695 (patch) | |
| tree | 0398fcc0e52e8cc0dd62668704c1889263f69a3a /src/rt/rust_shape.cpp | |
| parent | e927df17f7f9c150fcbfd566927ad29ff5eb6f15 (diff) | |
| download | rust-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.cpp | 4 |
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? |
