Skip to content
This repository has been archived by the owner on Nov 14, 2024. It is now read-only.

Commit

Permalink
[nrf toup] Zephyr: Fix the data type for time
Browse files Browse the repository at this point in the history
We use subtraction operation over time, so, it has to be signed.

Fixes "[nrf toup] Use 64bit data type to store time".

Signed-off-by: Chaitanya Tata <Chaitanya.Tata@nordicsemi.no>
  • Loading branch information
krish2718 committed May 28, 2024
1 parent 3ac5008 commit 2a2728e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/os.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
#ifndef OS_H
#define OS_H

typedef uint64_t os_time_t;
typedef int64_t os_time_t;

/**
* os_sleep - Sleep (sec, usec)
Expand Down

0 comments on commit 2a2728e

Please sign in to comment.