diff base/RealTime.cpp @ 912:2175c2ebd5c6 tonioni

Merge from default branch
author Chris Cannam
date Wed, 14 May 2014 09:58:07 +0100
parents 0f363d0fbdc3
children 6a94bb528e9d
line wrap: on
line diff
--- a/base/RealTime.cpp	Sat Apr 26 22:22:19 2014 +0100
+++ b/base/RealTime.cpp	Wed May 14 09:58:07 2014 +0100
@@ -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