Index: bench/benchmain.cpp |
diff --git a/bench/benchmain.cpp b/bench/benchmain.cpp |
index 164271a46cbfb4324b4ac5cd31c84256317127bc..c443c34fa5e208a9dfd03890be4e35752e19b9bf 100644 |
--- a/bench/benchmain.cpp |
+++ b/bench/benchmain.cpp |
@@ -654,7 +654,7 @@ int tool_main(int argc, char** argv) { |
if (frameIntervalTime >= FLAGS_minMs) { |
frameIntervalComputed = true; |
loopsPerFrame = |
- ((double)frameIntervalTotalLoops / frameIntervalTime) * FLAGS_minMs; |
+ (int)(((double)frameIntervalTotalLoops / frameIntervalTime) * FLAGS_minMs); |
if (loopsPerFrame < 1) { |
loopsPerFrame = 1; |
} |