diff options
author | Johnny Willemsen <jwillemsen@remedy.nl> | 2016-10-03 20:13:50 +0200 |
---|---|---|
committer | Johnny Willemsen <jwillemsen@remedy.nl> | 2016-10-03 20:13:50 +0200 |
commit | 1dacd1257ed117a8c04f283e3a662cda9bda539f (patch) | |
tree | e3e7b005478c78a14b76988d28b80f8caf142112 | |
parent | 1c7fca09922cdc0964bf874504f80a575d6e9379 (diff) | |
download | ATCD-1dacd1257ed117a8c04f283e3a662cda9bda539f.tar.gz |
Added cast to silence win32 warnings
* ACE/ace/Time_Value.cpp:
-rw-r--r-- | ACE/ace/Time_Value.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ACE/ace/Time_Value.cpp b/ACE/ace/Time_Value.cpp index 0cad794c554..e33d73ef35c 100644 --- a/ACE/ace/Time_Value.cpp +++ b/ACE/ace/Time_Value.cpp @@ -181,7 +181,7 @@ ACE_Time_Value::normalize (bool saturate) this->tv_.tv_usec <= -ACE_ONE_SECOND_IN_USECS) { time_t sec = std::abs(this->tv_.tv_usec) / ACE_ONE_SECOND_IN_USECS * (this->tv_.tv_usec > 0 ? 1 : -1); - suseconds_t usec = this->tv_.tv_usec - sec * ACE_ONE_SECOND_IN_USECS; + suseconds_t usec = static_cast<suseconds_t> (this->tv_.tv_usec - sec * ACE_ONE_SECOND_IN_USECS); if (saturate && this->tv_.tv_sec > 0 && sec > 0 && ACE_Numeric_Limits<time_t>::max() - this->tv_.tv_sec < sec) |