fix ltt_time_to_uint shift in wrong direction, oops
authorcompudj <compudj@04897980-b3bd-0310-b5e0-8ef037075253>
Sat, 21 Aug 2004 00:52:39 +0000 (00:52 +0000)
committercompudj <compudj@04897980-b3bd-0310-b5e0-8ef037075253>
Sat, 21 Aug 2004 00:52:39 +0000 (00:52 +0000)
git-svn-id: http://ltt.polymtl.ca/svn@823 04897980-b3bd-0310-b5e0-8ef037075253

ltt/branches/poly/ltt/time.h

index 2aafdb23ef9d9999a0640c1b435bcef2d1fd25ef..d826e4ac93d54b5cdb5d4d71e6101a6462b6174b 100644 (file)
@@ -213,7 +213,7 @@ static inline LttTime ltt_time_div(LttTime t1, double d)
 
 static inline guint64 ltt_time_to_uint64(LttTime t1)
 {
-  return (guint64)((t1.tv_sec*LTT_TIME_UINT_SHIFT_CONST) >> LTT_TIME_UINT_SHIFT)
+  return (((guint64)t1.tv_sec*LTT_TIME_UINT_SHIFT_CONST) << LTT_TIME_UINT_SHIFT)
                        + (guint64)t1.tv_nsec;
 }
 
This page took 0.02431 seconds and 4 git commands to generate.