aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAyke van Laethem <[email protected]>2024-04-26 13:20:26 +0200
committerRon Evans <[email protected]>2024-04-26 14:12:10 +0200
commitf986ea84aca1420698da56667f57e69ec585530a (patch)
tree6b77bbb869daab13c39335ec0de5c20665e68024
parent797a5a203171316c45ff54fa40d6d6ecef59bb97 (diff)
downloadtinygo-f986ea84aca1420698da56667f57e69ec585530a.tar.gz
tinygo-f986ea84aca1420698da56667f57e69ec585530a.zip
rp2040: fix timeUnit type
It should be int64 like for all other systems, not uint64.
-rw-r--r--src/runtime/runtime_rp2040.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/runtime/runtime_rp2040.go b/src/runtime/runtime_rp2040.go
index e5659d625..8a8c343c5 100644
--- a/src/runtime/runtime_rp2040.go
+++ b/src/runtime/runtime_rp2040.go
@@ -14,7 +14,7 @@ func machineTicks() uint64
// machineLightSleep is provided by package machine.
func machineLightSleep(uint64)
-type timeUnit uint64
+type timeUnit int64
// ticks returns the number of ticks (microseconds) elapsed since power up.
func ticks() timeUnit {