changeset 861:0f363d0fbdc3

Clarify
author Chris Cannam
date Wed, 11 Dec 2013 21:39:54 +0000
parents f276f707120a
children 786ee8d1f30e
files base/RealTime.cpp
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/base/RealTime.cpp	Wed Dec 11 17:36:07 2013 +0000
+++ b/base/RealTime.cpp	Wed Dec 11 21:39:54 2013 +0000
@@ -442,7 +442,7 @@
 {
     if (time < zeroTime) return -realTime2Frame(-time, sampleRate);
     double s = time.sec + double(time.nsec + 1) / 1000000000.0;
-    return long(s * sampleRate);
+    return long(s * double(sampleRate));
 }
 
 RealTime