From ed747fc789cfc56596deeb07cb87c186b235e0cc Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Wed, 11 Feb 2009 12:10:52 +0000 Subject: [PATCH] Added brackets around (unsigned int) to avoid IRIX compile error. --- src/OpenThreads/sproc/SprocThread.c++ | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/OpenThreads/sproc/SprocThread.c++ b/src/OpenThreads/sproc/SprocThread.c++ index 84c464d48..ac0edba8f 100755 --- a/src/OpenThreads/sproc/SprocThread.c++ +++ b/src/OpenThreads/sproc/SprocThread.c++ @@ -198,13 +198,13 @@ void ThreadPrivateActions::PrintThreadSchedulingInfo(Thread *thread) { if(status != 0 || my_policy == -1) { printf("THREAD INFO (%d) : Get sched param: %s/%s\n", - unsigned int(thread->getProcessId()), + (unsigned int)(thread->getProcessId()), strerror(status), strerror(errno)); } else { printf( "THREAD INFO (%d) : Thread running at %s / Priority: %d\n", - unsigned int(thread->getProcessId()), + (unsigned int)(thread->getProcessId()), (my_policy == SCHED_FIFO ? "SCHEDULE_FIFO" : (my_policy == SCHED_RR ? "SCHEDULE_ROUND_ROBIN" : (my_policy == SCHED_TS ? "SCHEDULE_TIME_SHARE" @@ -217,7 +217,7 @@ void ThreadPrivateActions::PrintThreadSchedulingInfo(Thread *thread) { printf( "THREAD INFO (%d) : Max priority: %d, Min priority: %d\n", - unsigned int(thread->getProcessId()), + (unsigned int)(thread->getProcessId()), max_priority, min_priority); }