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:
Ramakrishna Pallala 2018-04-30 14:12:01 +05:30 committed by Anas Nashif
parent 2002a4e245
commit e7648ba320

View file

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