loolwsd/LOOLStress.cpp |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

New commits:
commit e2029921cbc8053ba82e32cbc90fa48d45db2b35
Author: Miklos Vajna <vmik...@collabora.co.uk>
Date:   Mon Sep 19 09:21:47 2016 +0200

    LOOLStress: avoid multiplying at int precision, then converting to long
    
    Change-Id: Ie79296522d09be0f337f218bede1a28e9bac3a7c

diff --git a/loolwsd/LOOLStress.cpp b/loolwsd/LOOLStress.cpp
index b4478b4..2929bee 100644
--- a/loolwsd/LOOLStress.cpp
+++ b/loolwsd/LOOLStress.cpp
@@ -53,7 +53,7 @@ public:
     ~Stress() {}
 
     static bool Benchmark;
-    static int Iterations;
+    static size_t Iterations;
     static bool NoDelay;
     unsigned _numClients;
     std::string _serverURI;
@@ -268,7 +268,7 @@ private:
 
         connection->load();
 
-        for (auto i = 0; i < Stress::Iterations; ++i)
+        for (size_t i = 0; i < Stress::Iterations; ++i)
         {
             renderTile(connection);
 
@@ -405,7 +405,7 @@ private:
 
 bool Stress::NoDelay = false;
 bool Stress::Benchmark = false;
-int Stress::Iterations = 100;
+size_t Stress::Iterations = 100;
 
 Stress::Stress() :
     _numClients(1),
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to