From 962f6d08d1aebf95370ea36f07e9a6dffa84c382 Mon Sep 17 00:00:00 2001 From: Jeff Hill Date: Fri, 18 May 2001 16:35:06 +0000 Subject: [PATCH] fixed improper use of unsigned type --- src/libCom/test/epicsEventTest.cpp | 2 +- src/libCom/test/epicsThreadTest.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libCom/test/epicsEventTest.cpp b/src/libCom/test/epicsEventTest.cpp index 878815655..f500133b1 100644 --- a/src/libCom/test/epicsEventTest.cpp +++ b/src/libCom/test/epicsEventTest.cpp @@ -116,7 +116,7 @@ static void producer(void *arg) static void eventWaitTest() { epicsEventId event = epicsEventMustCreate ( epicsEventEmpty ); - for ( unsigned i = 0u; i < 20; i++ ) { + for ( int i = 0u; i < 20; i++ ) { epicsTime beg = epicsTime::getCurrent(); double delay = ldexp ( 1.0 , -i ); epicsEventWaitWithTimeout ( event, delay ); diff --git a/src/libCom/test/epicsThreadTest.cpp b/src/libCom/test/epicsThreadTest.cpp index 7e7fd56d8..7b4283a07 100644 --- a/src/libCom/test/epicsThreadTest.cpp +++ b/src/libCom/test/epicsThreadTest.cpp @@ -57,7 +57,7 @@ void myThread::run() static void threadSleepTest() { - for ( unsigned i = 0u; i < 20; i++ ) { + for ( int i = 0u; i < 20; i++ ) { epicsTime beg = epicsTime::getCurrent(); double delay = ldexp ( 1.0 , -i ); epicsThreadSleep ( delay );