diff --git a/testApp/misc/testTimeStamp.cpp b/testApp/misc/testTimeStamp.cpp index c7bfd53..b748f9a 100644 --- a/testApp/misc/testTimeStamp.cpp +++ b/testApp/misc/testTimeStamp.cpp @@ -35,7 +35,7 @@ void testTimeStampInternal() current.getCurrent(); printf("current %lli %i milliSec %lli\n", (long long)current.getSecondsPastEpoch(), - current.getNanoseconds(), + (int)current.getNanoseconds(), (long long)current.getMilliseconds()); time_t tt; current.toTime_t(tt); @@ -45,13 +45,13 @@ void testTimeStampInternal() "%4.4d.%2.2d.%2.2d %2.2d:%2.2d:%2.2d %d isDst %s\n", ctm.tm_year+1900,ctm.tm_mon + 1,ctm.tm_mday, ctm.tm_hour,ctm.tm_min,ctm.tm_sec, - current.getNanoseconds(), + (int)current.getNanoseconds(), (ctm.tm_isdst==0) ? "false" : "true"); tt = time(&tt); current.fromTime_t(tt); printf("fromTime_t\ncurrent %lli %i milliSec %lli\n", (long long)current.getSecondsPastEpoch(), - current.getNanoseconds(), + (int)current.getNanoseconds(), (long long)current.getMilliseconds()); current.toTime_t(tt); memcpy(&ctm,localtime(&tt),sizeof(struct tm)); @@ -59,7 +59,7 @@ void testTimeStampInternal() "%4.4d.%2.2d.%2.2d %2.2d:%2.2d:%2.2d %d isDst %s\n", ctm.tm_year+1900,ctm.tm_mon + 1,ctm.tm_mday, ctm.tm_hour,ctm.tm_min,ctm.tm_sec, - current.getNanoseconds(), + (int)current.getNanoseconds(), (ctm.tm_isdst==0) ? "false" : "true"); TimeStamp right; TimeStamp left; diff --git a/testApp/property/testProperty.cpp b/testApp/property/testProperty.cpp index aaf4571..53a3e96 100644 --- a/testApp/property/testProperty.cpp +++ b/testApp/property/testProperty.cpp @@ -131,9 +131,9 @@ static void testTimeStamp() "%4.4d.%2.2d.%2.2d %2.2d:%2.2d:%2.2d %d nanoseconds isDst %s userTag %d\n", ctm.tm_year+1900,ctm.tm_mon + 1,ctm.tm_mday, ctm.tm_hour,ctm.tm_min,ctm.tm_sec, - timeStamp.getNanoseconds(), + (int)timeStamp.getNanoseconds(), (ctm.tm_isdst==0) ? "false" : "true", - timeStamp.getUserTag()); + (int)timeStamp.getUserTag()); } timeStamp.put(0,0); pvTimeStamp.set(timeStamp); @@ -217,14 +217,14 @@ static void testEnumerated() PVStringArray::const_svector choices = pvEnumerated.getChoices(); int32 numChoices = pvEnumerated.getNumberChoices(); if(debug) { - printf("index %d choice %s choices",index,choice.c_str()); + printf("index %d choice %s choices",(int)index,choice.c_str()); for(int i=0; i