Permalink
Browse files

Fix a #define

I don't think it was causing any problems, but
    TimeToUS(x+y)
would have evaluated to
    x + (y / 1000)
  • Loading branch information...
1 parent e0383e2 commit 54121fffb5ee069d9b7a5628104ff1114ea87182 @igfoo igfoo committed Jan 15, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 includes/Rts.h
View
@@ -166,7 +166,7 @@ typedef StgInt64 Time;
#if TIME_RESOLUTION == 1000000000
// I'm being lazy, but it's awkward to define fully general versions of these
-#define TimeToUS(t) (t / 1000)
+#define TimeToUS(t) ((t) / 1000)
#define TimeToNS(t) (t)
#define USToTime(t) ((Time)(t) * 1000)
#define NSToTime(t) ((Time)(t))

0 comments on commit 54121ff

Please sign in to comment.