Fix sign-conversion warning on gcc when compiling to raspberry pi 2 (#2308)

JerryScript-DCO-1.0-Signed-off-by: Istvan Miklos imiklos2@inf.u-szeged.hu
This commit is contained in:
Istvan Miklos
2018-05-08 04:41:05 +02:00
committed by yichoi
parent 5f60208d1e
commit 7e4e551dd5
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -259,7 +259,7 @@ void jerry_port_sleep (uint32_t sleep_time)
#ifdef HAVE_TIME_H
nanosleep (&(const struct timespec)
{
sleep_time / 1000, (sleep_time % 1000) * 1000000L /* Seconds, nanoseconds */
(time_t) sleep_time / 1000, ((long int) sleep_time % 1000) * 1000000L /* Seconds, nanoseconds */
}
, NULL);
#elif defined (HAVE_UNISTD_H)