diff --git a/examples/rt/rt.cpp b/examples/rt/rt.cpp index 688d8249..6b9dde91 100644 --- a/examples/rt/rt.cpp +++ b/examples/rt/rt.cpp @@ -42,6 +42,7 @@ #include #include #include +#include #include #include "../timing.h" #include "../cpuid.h" diff --git a/examples/tasks_pthreads.cpp b/examples/tasks_pthreads.cpp index 9ce9d827..310db4d9 100644 --- a/examples/tasks_pthreads.cpp +++ b/examples/tasks_pthreads.cpp @@ -181,7 +181,7 @@ ISPCLaunch(void *f, void *d) { static void * lTaskEntry(void *arg) { - int threadIndex = (int)arg; + int threadIndex = (int)((int64_t)arg); int threadCount = nThreads; TaskFuncType func;