From 6096bfbb65a205ecfa389da49ffc6150e4dcac9e Mon Sep 17 00:00:00 2001 From: Chaitanya Tata Date: Tue, 28 May 2024 18:05:41 +0530 Subject: [PATCH] [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 --- src/utils/os.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/os.h b/src/utils/os.h index de1ac943c..acd63f3e5 100644 --- a/src/utils/os.h +++ b/src/utils/os.h @@ -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)