avoid conversion warning by old versions of gcc
authorMathieu Lacage <mathieu.lacage@inria.fr>
Sat, 23 Apr 2011 13:53:31 +0200
changeset 7083 b0e69ef06b27
parent 7082 e9ca5b2838e7
child 7084 687dcd1eefbd
avoid conversion warning by old versions of gcc
src/core/model/nstime.h
--- a/src/core/model/nstime.h	Thu Apr 21 13:51:07 2011 -0700
+++ b/src/core/model/nstime.h	Sat Apr 23 13:53:31 2011 +0200
@@ -175,7 +175,7 @@
     : m_data (o.m_data)
   {}
   explicit inline Time (double v)
-    : m_data (v)
+    : m_data (lround(v))
   {}
   explicit inline Time (int v)
     : m_data (v)