diff options
author | deadprogram <[email protected]> | 2021-05-28 07:38:59 +0200 |
---|---|---|
committer | deadprogram <[email protected]> | 2021-05-28 07:38:59 +0200 |
commit | ed2db8a26d8b5f3fdb9bf6365002bc6eeb19c758 (patch) | |
tree | d284f7e0fd28133a17388b53f558c1c2af5291ec /src/runtime/scheduler.go | |
parent | fd8938c6346010979992986b2a1b512449e5c866 (diff) | |
download | tinygo-ed2db8a26d8b5f3fdb9bf6365002bc6eeb19c758.tar.gz tinygo-ed2db8a26d8b5f3fdb9bf6365002bc6eeb19c758.zip |
Revert "scheduler: task.Data made 64bit to avoid overflow"
This reverts commit fd8938c6346010979992986b2a1b512449e5c866.
Diffstat (limited to 'src/runtime/scheduler.go')
-rw-r--r-- | src/runtime/scheduler.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/runtime/scheduler.go b/src/runtime/scheduler.go index 44b07f75d..c5286d33b 100644 --- a/src/runtime/scheduler.go +++ b/src/runtime/scheduler.go @@ -88,7 +88,7 @@ func addSleepTask(t *task.Task, duration timeUnit) { panic("runtime: addSleepTask: expected next task to be nil") } } - t.Data = uint64(duration) + t.Data = uint(duration) // TODO: longer durations now := ticks() if sleepQueue == nil { scheduleLog(" -> sleep new queue") |