From 709c30b4f09f6a14366b1558f09571ad882a65fc Mon Sep 17 00:00:00 2001 From: compudj Date: Sat, 21 Aug 2004 00:52:39 +0000 Subject: [PATCH] fix ltt_time_to_uint shift in wrong direction, oops git-svn-id: http://ltt.polymtl.ca/svn@823 04897980-b3bd-0310-b5e0-8ef037075253 --- ltt/branches/poly/ltt/time.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ltt/branches/poly/ltt/time.h b/ltt/branches/poly/ltt/time.h index 2aafdb23..d826e4ac 100644 --- a/ltt/branches/poly/ltt/time.h +++ b/ltt/branches/poly/ltt/time.h @@ -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; } -- 2.34.1