Skip to content

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".

Fixes SHEL-2731.

Signed-off-by: Chaitanya Tata <Chaitanya.Tata@nordicsemi.no>
  • Loading branch information
krish2718 committed May 30, 2024
1 parent 3ac5008 commit c947dc6
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 c947dc6

Please sign in to comment.