From 8e94cd5369f5af433ebd6791b2a2dc8cc2ea3ff9 Mon Sep 17 00:00:00 2001 From: martynshaw99 Date: Mon, 13 Sep 2010 23:01:12 +0000 Subject: [PATCH] Improved QUANTIZED_TIME macro, just in case integers are passed. --- src/Audacity.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Audacity.h b/src/Audacity.h index d4be870b9..3f5b8e21d 100644 --- a/src/Audacity.h +++ b/src/Audacity.h @@ -153,4 +153,4 @@ void QuitAudacity(); #endif // This macro is used widely, so declared here. -#define QUANTIZED_TIME(time, rate) ((double)((sampleCount)floor(((time) * (rate)) + 0.5))) / (rate) +#define QUANTIZED_TIME(time, rate) ((double)((sampleCount)floor(((double)(time) * (rate)) + 0.5))) / (rate)