Skip to content

Commit c947dc6

Browse files
committed
[nrf toup] Zephyr: Fix the data type for time
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>
1 parent 3ac5008 commit c947dc6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/utils/os.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
#ifndef OS_H
1010
#define OS_H
1111

12-
typedef uint64_t os_time_t;
12+
typedef int64_t os_time_t;
1313

1414
/**
1515
* os_sleep - Sleep (sec, usec)

0 commit comments

Comments
 (0)