From 6440239832b8364d6df7d9d60c04009ecd77f156 Mon Sep 17 00:00:00 2001 From: Jeff Hill Date: Wed, 4 Sep 1996 21:53:36 +0000 Subject: [PATCH] allow use with goofy vxWorks 5.2 time spec - which has unsigned sec and signed nsec --- src/libCom/osiTime.h | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/src/libCom/osiTime.h b/src/libCom/osiTime.h index 29dafe656..e041211cf 100644 --- a/src/libCom/osiTime.h +++ b/src/libCom/osiTime.h @@ -29,6 +29,9 @@ * * History * $Log$ + * Revision 1.2 1996/07/09 23:01:04 jhill + * added new operators + * * Revision 1.1 1996/06/26 22:14:11 jhill * added new src files * @@ -113,9 +116,9 @@ public: void get(long &secOut, long &nSecOut) const { assert(this->sec <= LONG_MAX); - secOut = this->sec; + secOut = (long) this->sec; assert(this->nSec <= LONG_MAX); - nSecOut = this->nSec; + nSecOut = (long) this->nSec; } void get(unsigned long &secOut, unsigned long &nSecOut) const { @@ -127,6 +130,16 @@ public: secOut = this->sec; nSecOut = this->nSec; } + // + // for the goofy vxWorks 5.2 time spec + // (which has unsigned sec and long nano-sec) + // + void get(unsigned long &secOut, long &nSecOut) const + { + secOut = this->sec; + assert(this->nSec <= LONG_MAX); + nSecOut = this->nSec; + } operator double() const {