Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. +1 1  includes/Rts.h
2  includes/Rts.h
@@ -166,7 +166,7 @@ typedef StgInt64 Time;
166 166
167 167 #if TIME_RESOLUTION == 1000000000
168 168 // I'm being lazy, but it's awkward to define fully general versions of these
169   -#define TimeToUS(t) (t / 1000)
  169 +#define TimeToUS(t) ((t) / 1000)
170 170 #define TimeToNS(t) (t)
171 171 #define USToTime(t) ((Time)(t) * 1000)
172 172 #define NSToTime(t) ((Time)(t))

0 comments on commit 54121ff

Please sign in to comment.
Something went wrong with that request. Please try again.