From a73d0a21c875ff539c2240e431eaf87173a92bd3 Mon Sep 17 00:00:00 2001 From: Ian Lynagh <igloo@earth.li> Date: Sun, 15 Jan 2012 19:21:38 +0000 Subject: [PATCH] Fix a #define I don't think it was causing any problems, but TimeToUS(x+y) would have evaluated to x + (y / 1000) MERGED from commit 54121fffb5ee069d9b7a5628104ff1114ea87182 On the 7.4 branch, this was causing a wrong conversion in getDelayTarget. Signed-off-by: Paolo Capriotti <p.capriotti@gmail.com> --- includes/Rts.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/Rts.h b/includes/Rts.h index 45c09f8fb7a3..3360eda323e5 100644 --- a/includes/Rts.h +++ b/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)) -- GitLab