Skip to content

Commit 6cf495e

Browse files
committed
uint64_t -> uint32_t
1 parent 716a5cb commit 6cf495e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -928,7 +928,7 @@ for arbitrary periodic timers:
928928
929929
```c
930930
// t: expiration time, prd: period, now: current time. Return true if expired
931-
bool timer_expired(uint32_t *t, uint64_t prd, uint64_t now) {
931+
bool timer_expired(uint32_t *t, uint32_t prd, uint32_t now) {
932932
if (now + prd < *t) *t = 0; // Time wrapped? Reset timer
933933
if (*t == 0) *t = now + prd; // First poll? Set expiration
934934
if (*t > now) return false; // Not expired yet, return

0 commit comments

Comments
 (0)