From 74c2c8ae07fb2ab90790be744a6de84c41f13a39 Mon Sep 17 00:00:00 2001 From: Matt Pharr Date: Wed, 17 Aug 2011 07:08:44 -0700 Subject: [PATCH] Linux build fixes --- examples/rt/rt.cpp | 1 + examples/tasks_pthreads.cpp | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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;