lib: posix: pthread_common: Fix potential integer overflow issue
Fix potential overflow of interger expression for by fixing variable type to s64_t. CID: 185275 Signed-off-by: Ramakrishna Pallala <ramakrishna.pallala@intel.com>
This commit is contained in:
parent
2002a4e245
commit
e7648ba320
|
@ -12,8 +12,7 @@
|
|||
|
||||
s64_t timespec_to_timeoutms(const struct timespec *abstime)
|
||||
{
|
||||
s64_t milli_secs;
|
||||
s32_t secs, nsecs;
|
||||
s64_t milli_secs, secs, nsecs;
|
||||
struct timespec curtime;
|
||||
|
||||
/* FIXME: Zephyr does have CLOCK_REALTIME to get time.
|
||||
|
|
Loading…
Reference in a new issue