diff options
author | Bernard Normier <bernard@zeroc.com> | 2020-04-30 14:25:43 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-30 14:25:43 -0400 |
commit | c50c3caeb3a84d442be0665988f25fd45c579b9f (patch) | |
tree | 5e61f37d093a8d7778698c8b65ff03b39d4e99ec /cpp/src/IceUtil | |
parent | Fix build failured, introduce in previous commit (diff) | |
download | ice-c50c3caeb3a84d442be0665988f25fd45c579b9f.tar.bz2 ice-c50c3caeb3a84d442be0665988f25fd45c579b9f.tar.xz ice-c50c3caeb3a84d442be0665988f25fd45c579b9f.zip |
Fixed warnings (#824)
Diffstat (limited to 'cpp/src/IceUtil')
-rw-r--r-- | cpp/src/IceUtil/Time.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cpp/src/IceUtil/Time.cpp b/cpp/src/IceUtil/Time.cpp index b53e6757118..bac201a055d 100644 --- a/cpp/src/IceUtil/Time.cpp +++ b/cpp/src/IceUtil/Time.cpp @@ -97,7 +97,7 @@ IceUtil::Time::now(Clock clock) struct timeb tb; ftime(&tb); # endif - return Time(static_cast<Int64>(tb.time) * ICE_INT64(1000000) + tb.millitm * 1000); + return Time(static_cast<Int64>(tb.time) * ICE_INT64(1000000) + Int64(tb.millitm) * 1000); #else struct timeval tv; if(gettimeofday(&tv, 0) < 0) @@ -130,7 +130,7 @@ IceUtil::Time::now(Clock clock) struct timeb tb; ftime(&tb); # endif - return Time(static_cast<Int64>(tb.time) * ICE_INT64(1000000) + tb.millitm * 1000); + return Time(static_cast<Int64>(tb.time) * ICE_INT64(1000000) + Int64(tb.millitm) * 1000); } #elif defined(__hppa) // |