Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
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...
commit 54121fffb5ee069d9b7a5628104ff1114ea87182 1 parent e0383e2
@igfoo igfoo authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  includes/Rts.h
View
2  includes/Rts.h
@@ -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))
Please sign in to comment.
Something went wrong with that request. Please try again.